SVG to PNG with multiple image layers using PHP
I convert svg to png image with this code <?php exec('/usr/bin/rsvg-convert -w 1000 -h 1000 tshirt.svg -o tshirt.png'); ?> This works with a single svg image. Actually i have an svg image which contains multiple layers of images like: 1st layer -: this is the background T-shirt image which is transparent 2nd layer -: this is another T-shirt image which contains color 3rd layer -: this is the small sticker image which should be placed on the T-shirt My svg code is -: <?xml version="1.0" encoding="utf-8"?> <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD