"no decode delegate" for 1 SVG, while all others work fine
Posted: 2011-12-29T17:20:31-07:00
I wrote a script which parses SVGs and breaks them down into layers, saving the individual layers as PNGs as well as the 1 original SVG as a PNG.
Ran through hundreds of SVGs without a problem, but this current file is being troublesome. I'm getting the good ol' "no decode delegate" error when I perform $image->readImageBlob() on the contents of the SVG file:
The line in my PHP script that is throwing the error is:
where $svg_blob is simply the result of file_get_contents('path/to/svg').
I can probably work with the content of this SVG (attached to this post) in a graphics program to get it working within the canvas of another (known working) SVG, but I am very curious what the actual problem with this file is as it's virtually identical to what I've already been using. Anyone have a clue?
Ran through hundreds of SVGs without a problem, but this current file is being troublesome. I'm getting the good ol' "no decode delegate" error when I perform $image->readImageBlob() on the contents of the SVG file:
Code: Select all
magickException: no decode delegate for this image format `' @ error/blob.c/BlobToImage/349 in Imagick->readimageblob()
Code: Select all
$im->readImageBlob($svg_blob);
I can probably work with the content of this SVG (attached to this post) in a graphics program to get it working within the canvas of another (known working) SVG, but I am very curious what the actual problem with this file is as it's virtually identical to what I've already been using. Anyone have a clue?