svg to png on Ubuntu

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
Max-B

svg to png on Ubuntu

Post by Max-B »

Hi,
I'm running ImageMagick in order to convert svg to png on Ubuntu 10.04 with the command

Code: Select all

convert image.svg image.png
The problem i found is that blur polygon in svg file are completely ignored. I have run the same command on a Debian Lenny and it works perfectly.
Here are two example:
DEBIAN LENNY -----------> UBUNTU LUCID
Image Image

The ImageMagick version on Ubuntu is 6.5.7 on Lenny is 6.3.7
Does anybody knows how can I solve on the Ubuntu machine?
Ciao,
Max
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: svg to png on Ubuntu

Post by fmw42 »

do you have the RSVG delegate library installed on both machines and are they the same version
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: svg to png on Ubuntu

Post by anthony »

See SVG Handling for details. It is important to know if your using RSVG (externel) or MSVG (internel) driver. probably the later.
http://www.imagemagick.org/Usage/draw/#svg
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Max-B

Re: svg to png on Ubuntu

Post by Max-B »

Here is my output on Debian Lenny:

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.22.2)
     SVGZ* SVG       rw+   Compressed Scalable Vector Graphics (RSVG 2.22.2)
and here on Ubuntu 10.04

Code: Select all

$ convert -list format |grep SVG     MSVG  SVG       rw+   ImageMagick's own SVG internal renderer
      SVG  SVG       rw+   Scalable Vector Graphics (XML 2.7.5)
     SVGZ  SVG       rw+   Compressed Scalable Vector Graphics (XML 2.7.5)
Is there a way to use RSVG without recompiling?
ciao,
Max-B
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: svg to png on Ubuntu

Post by anthony »

If the rsvg library is installed it might start working immediatally.

Code: Select all

:::> type rsvg
rsvg is /usr/bin/rsvg
Otherwise you need to rsvg development package and a re-build.


It should also be posible to write your script to use teh rsvg command to generate the raster, and then feed that to IM if you need more image processing.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: svg to png on Ubuntu

Post by fmw42 »

type

convert -list configure

look at what is listed in the line starting with DELEGATES. Does it include rsvg?
Post Reply