Converting SVG to PNG - fill content doesn't work

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
sancappello
Posts: 1
Joined: 2013-04-28T01:40:43-07:00
Authentication code: 6789

Converting SVG to PNG - fill content doesn't work

Post by sancappello »

Hi everyone!
I'm trying to convert a SVG image into a PNG using ImageMagick.
Here is the SVG file:
file.svg

The command that I use is the following:

Code: Select all

convert file.svg -scale 800x600^ png8:file.png
With older versions of IM the dots appeared to be filled with black color, but after I updated to the last version (6.8.5-0) the fill option started to be ignored, and the result is this:

Image

Am I missing something or doing something wrong?
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Converting SVG to PNG - fill content doesn't work

Post by fmw42 »

are you using the IM msvg or the rsvg rendering delegate library.

type

convert -list format

and see what it says for SVG. Does it list RSVG? If not, download the RSVG delegate and reinstall IM to use it.

When try, I get an error message. So something appears to be malformed


convert file13671382410.svg file13671382410.png
convert: invalid geometry `nannan' @ error/geometry.c/ParsePageGeometry/1444.
Post Reply