How can I scale up an SVG and save as PNG, with PHP without losing quality?
I have a batch of SVG images that I need to resize and then save as PNG, and I'd like to use PHP to do it. Similar questions to mine have been asked but none of the solutions work for me. For example: option A : use PHP to change the width and height attribute of the SVG. problem with A : this seems to work fine but in fact it only increases the canvas size, not the contents of the canvas. I'm not sure if it's important but my SVGs are small graphics that were created with Illustrator, mostly made up of path elements. option B : use imagick to resize and resave example : $im = new Imagick();