ImageMagick silently but incorrectly converts SVG files to PNG files

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
mcalhoun
Posts: 2
Joined: 2017-10-25T06:05:40-07:00
Authentication code: 1151

ImageMagick silently but incorrectly converts SVG files to PNG files

Post by mcalhoun »

When attempting to convert the GNU Octave logo from SVG to PNG, ImageMagick seems to succeed, but the blue part of the image disappears.
No error or warning is given.
Others seem to have encountered this problem
(see http://savannah.gnu.org/bugs/?37062#comment26).
When ImageMagick is compiled with rsvg support, however, the file is converted correctly.

OS: macOS
Compiler: Clang provided by Xcode

Octave Logo: http://hg.savannah.gnu.org/hgweb/octave ... e-logo.svg
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: ImageMagick silently but incorrectly converts SVG files to PNG files

Post by fmw42 »

Imagemgagick can use 3 different SVG renderers. They vary in quality/accuracy of rendering. The best is to use Inkscape. Next is RSVG. Finally you can use the IM internal renderer, but it does not always do a good job. So you are encourage to use either Inkscape or RSVG.
mcalhoun
Posts: 2
Joined: 2017-10-25T06:05:40-07:00
Authentication code: 1151

Re: ImageMagick silently but incorrectly converts SVG files to PNG files

Post by mcalhoun »

Thank you for the feedback.
I will incorporate your suggestions into my project.
Post Reply