I'm using ImageMagick 6.9, and I've got an app that should open SVGs, resize and build a composite image, then export to PNG. I have two problems:
- ImageMagick doesn't seem to handle the <g> element in SVGs. I've tested the same SVG with embeded images, and the first where the image is by itself in the SVG converted with no issues.
The second SVG with the same image, but wrapped in a <g> element resulted in a blank output. - SVGs with large (10Mb) embedded images. I'm using PHP, so I'm processing via IMagick. I get this error when trying to open an SVG with large images: I can test my script with the same PNG that was embedded in the SVG and there is no issue with opening a 10Mb file.
Code: Select all
'ImagickException' with message 'internal error: Huge input lookup `No such file or directory` @ error/svg.c/SVGError/2639'
Here are links to the test SVGs...
SVG that renders fine: http://brainboxinteractive.com/test1.svg
SVG with image wrapped in a <g> element: http://brainboxinteractive.com/test2.svg
Huge SVG: http://brainboxinteractive.com/test.svg
Thanks for any help!