SVG to JPG / PNG SVG to JPG / PNG php php

SVG to JPG / PNG


If you're using PEAR you can the XML_svg2image package (http://pear.php.net/package/XML_svg2image/). If not you should take a look at ImageMagick command line tool (http://www.imagemagick.org/script/command-line-tools.php). The convert program is quite simple to use : http://www.imagemagick.org/script/convert.php#usage


If you have imagemagick installed (the tool, not sure how it would work with the PHP package), it can be as simple as:

<?php  `convert infile.svg outfile.jpg`?>