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)
svg 2 gif : shape are converted but text not - is it a bug ?
Re: svg 2 gif : shape are converted but text not - is it a bug ?
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 ?
Thanks for the fast reply.
I wil check with my webserver host "MavenHosting" if they can fix it.
Fred
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 ?
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
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 ?
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
- SVG SVG rw+ Scalable Vector Graphics (RSVG 2.22.3)
Re: svg 2 gif : shape are converted but text not - is it a bug ?
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
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
- 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 ?
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/
https://imagemagick.org/Usage/