Convert SVG to PNG
Posted: 2014-07-30T10:34:32-07:00
I am trying to find a way to convert any SVG image to a PNG.
Here is what I have tried so far:
convert -background none logo_svg.svg b.png
In some cases, the PNG image is written (even though there are missing colors), even though the image is not the same one. Example:
Original Image: http://jet-computing.com/wp-content/upl ... x.svg_.png
Result: http://imgur.com/pywEaZs
And in other cases, such as this case:
Original: http://demandware.edgesuite.net/aaci_pr ... s/logo.svg
When trying to run that command, I get: 'convert: non-conforming drawing primitive definition `path' @ error/draw.c/DrawImage/3179.'
Any thoughts?
For the records, here are the SVG libs that are shown when doing convert -list format:
SVG SVG rw+ Scalable Vector Graphics (XML 2.9.1)
SVGZ SVG rw+ Compressed Scalable Vector Graphics (XML 2.9.1)
Here is what I have tried so far:
convert -background none logo_svg.svg b.png
In some cases, the PNG image is written (even though there are missing colors), even though the image is not the same one. Example:
Original Image: http://jet-computing.com/wp-content/upl ... x.svg_.png
Result: http://imgur.com/pywEaZs
And in other cases, such as this case:
Original: http://demandware.edgesuite.net/aaci_pr ... s/logo.svg
When trying to run that command, I get: 'convert: non-conforming drawing primitive definition `path' @ error/draw.c/DrawImage/3179.'
Any thoughts?
For the records, here are the SVG libs that are shown when doing convert -list format:
SVG SVG rw+ Scalable Vector Graphics (XML 2.9.1)
SVGZ SVG rw+ Compressed Scalable Vector Graphics (XML 2.9.1)