Page 1 of 1

ImageMagick silently but incorrectly converts SVG files to PNG files

Posted: 2017-10-25T06:18:31-07:00
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

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

Posted: 2017-10-25T09:00:52-07:00
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.

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

Posted: 2017-10-26T20:01:38-07:00
by mcalhoun
Thank you for the feedback.
I will incorporate your suggestions into my project.