Page 1 of 1

Gradient on Ubuntu

Posted: 2012-04-19T14:34:38-07:00
by jocolloman
I am using Ubuntu 11.10. I have installed ImageMagick from the latest source package. Here is the output from "convert -version"

Version: ImageMagick 6.7.6-6 2012-04-19 Q16 http:// www.imagemagick.org Copyright: Copyright (C) 1999-2012 ImageMagick Studio LLC Features: OpenMP

I am trying to convert an svg into a png which works great unless I have a gradient on some part of the image.

Here is the command I am running: "convert RedPoweredByPenguins.svg redpenguin.png"

Here is the SVG: http://gamepsychos.com/penguinCheckers/redPenguin.svg

And here is the png it creates: http://gamepsychos.com/penguinCheckers/ ... infail.png

When I run this same command on Fedora 16, I don't lose the gradient. I think maybe one of the libraries ImageMagick uses is not the same but I'm not sure. Anyone have any ideas?

Thanks in advance!

Re: Gradient on Ubuntu

Posted: 2012-04-19T16:19:56-07:00
by anthony
If the rsvg library is installed, IM will use it to decode SVG images to raster.
If it is not present it will use a simple internal SVG decoder (never completed) known as MSVG

You can use -list format to see what version it is using.

Code: Select all

convert -list format | grep SVG
     MSVG  SVG       rw+   ImageMagick's own SVG internal renderer
      SVG  SVG       rw+   Scalable Vector Graphics (RSVG 2.34.2)
     SVGZ  SVG       rw+   Compressed Scalable Vector Graphics (RSVG 2.34.2)
In my case 'SVG' is using RSVG, library version 2.34.2 (I am using fedora 16 here)

For more details see IM examples, Drawing on Images, SVG
http://www.imagemagick.org/Usage/draw/#svg