Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[MacOSX] Generating PNG fails because images do not fit into rendered area #40

Open
funkenstrahlen opened this issue Nov 20, 2015 · 3 comments

Comments

@funkenstrahlen
Copy link

I just tried to generate PNGs with this command:

font-awesome-svg-png --color "#000000,#FFFFFF,#EEC100,#0370E9" --sizes 50,100,200,300,500 --dest icons

However the generated PNGs are mostly empty. Only in the 500px Version I can see the top left part of the icon.

Example: Calculator.png in 500px

calculator

What is going wrong?

@haio
Copy link

haio commented Dec 17, 2015

I got the same problem on osx 10.11.1.
Maybe there is something wrong with rsvg-convert, when I run rsvg-convert -w 1000 -h 1000 mobile.svg > mobile.png directly I got the similar partial png file.

@haio
Copy link

haio commented Dec 17, 2015

That's because librsvg 2.40.11 and later breaks keep-aspect-ratio feature, see Homebrew/legacy-homebrew#44735, we can back to librsvg 2.40.10 by following command:

cd /usr/local
git checkout 7a58ff6e07dd35d438193a2e551cf282c2088a44 /usr/local/Library/Formula/librsvg.rb
brew install librsvg
git checkout master /usr/local/Library/Formula/librsvg.rb
brew pin librsvg

@rinogo
Copy link

rinogo commented Nov 30, 2016

Didn't work for me. However, this even shorter bit of instructions do work.

@Rush Rush changed the title Generating PNG fails because images do not fit into rendered area [MacOSX] Generating PNG fails because images do not fit into rendered area May 30, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants