I\'m trying to use Image-Magick with PHP to convert SVG text into a PNG image. This SVG is a chart generated with NVD3 and I\'d like to allow my users to download it as an i
svg file text structure needs to be specified for readImageBlob to decode the file. Prepend to your variable having svg text.
readImageBlob
$svg = ''.$svg;
And you are good to go.