svg 2 gif : shape are converted but text not - is it a bug ?

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
frederic_fleche

svg 2 gif : shape are converted but text not - is it a bug ?

Post by frederic_fleche »

Hello,

I am using Image Magick to convert a svg file to a gif file with the following command in my php script:
exec("convert shapes.svg /home/bioinfor/public_html/tmp/shapes.gif");

The conversion is done but when I compare the svg file and the gif file there is a big problem (Bug ?). indeed the text in the svg file is not in the gif file.

Here is the original svg file :
http://www.bioinformatics.fr//test5/shapes.svg

Here is the final gif file :
http://www.bioinformatics.fr//tmp/shapes.gif


So is there a way to get a final gif file that have the text that was in the initial svg file.
Is it a bug ?

Thanks in advance.

Fred

(Version: ImageMagick 6.2.6 10/07/08 Q16 http://www.imagemagick.org)
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: svg 2 gif : shape are converted but text not - is it a bug ?

Post by magick »

Install the RSVG delegate library and rebuild ImageMagick. Without the RSVG library SVG rendering reverts to the ImageMagick internal renderer which does a good job but is missing some features as you already experienced.
frederic_fleche

Re: svg 2 gif : shape are converted but text not - is it a bug ?

Post by frederic_fleche »

Thanks for the fast reply.
I wil check with my webserver host "MavenHosting" if they can fix it.

Fred
frederic_fleche

Re: svg 2 gif : shape are converted but text not - is it a bug ?

Post by frederic_fleche »

Dear Magick,

I you suggested to me I ask people from Mavenhosting to instal RSVG.
They are very fast and sent me this message: "We have setup RSVG on your server.Please check and confirm."

I checked but the result is still the same : The words presents in the initial svg file are missing in the final gif file. Only the shapes are nicely converted. You can check again these two links.
Original : http://www.bioinformatics.fr/test5/shapes.svg
Final : http://www.bioinformatics.fr/tmp/shapes.gif

So I have two questions :
1° How can I check is the RSVG is well installed ?
2° Can someone with Imagemagick and RSVG installed, could check if he succeed to generate a final gif file with the words that are in the initial svg file.

Thanks in advance for your help and sorry to bother you.

Fred
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: svg 2 gif : shape are converted but text not - is it a bug ?

Post by magick »

Not only do you need to install RSVG but RSVG developer and then your must reconfigure ImageMagick and reinstall. To verify type
  • identify -list format
and you should get this:
  • SVG SVG rw+ Scalable Vector Graphics (RSVG 2.22.3)
frederic_fleche

Re: svg 2 gif : shape are converted but text not - is it a bug ?

Post by frederic_fleche »

Hello,

No need to send me a reply. I got the solution.
Now it works great using the rsvg command instead of convert.

thanks a lot for your nice siggestions.

Fred
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: svg 2 gif : shape are converted but text not - is it a bug ?

Post by anthony »

convert will use the rsvg library, if ImageMagick was compiled with the RSVG development package installed.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply