What would be the most efficient way to convert SVG to PNG, server side?
At the moment I have some SVG content which is posted to PHP, then written to disk before calling Imagemagick’s convert command.
Is there a better solution?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If you have root access, you could look into using rsvg (fast!) or Batik; otherwise, using ImageMagick is about the only option accessible to you.
Benchmarks can be found @ mediawiki.org/wiki/SVG_benchmarks#Benchmark
Hope that helps!