Page 1 of 1
svg 2 gif : shape are converted but text not - is it a bug ?
Posted: 2009-02-20T14:32:20-07:00
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)
Re: svg 2 gif : shape are converted but text not - is it a bug ?
Posted: 2009-02-20T14:43:18-07:00
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.
Re: svg 2 gif : shape are converted but text not - is it a bug ?
Posted: 2009-02-20T15:05:07-07:00
by frederic_fleche
Thanks for the fast reply.
I wil check with my webserver host "MavenHosting" if they can fix it.
Fred
Re: svg 2 gif : shape are converted but text not - is it a bug ?
Posted: 2009-02-22T10:38:16-07:00
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
Re: svg 2 gif : shape are converted but text not - is it a bug ?
Posted: 2009-02-22T10:49:50-07:00
by magick
Not only do you need to install RSVG but RSVG developer and then your must reconfigure ImageMagick and reinstall. To verify type
and you should get this:
- SVG SVG rw+ Scalable Vector Graphics (RSVG 2.22.3)
Re: svg 2 gif : shape are converted but text not - is it a bug ?
Posted: 2009-02-22T10:50:33-07:00
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
Re: svg 2 gif : shape are converted but text not - is it a bug ?
Posted: 2009-02-23T21:35:18-07:00
by anthony
convert will use the rsvg library, if ImageMagick was compiled with the RSVG development package installed.