Search found 1 match

by orech
2014-03-11T04:08:15-07:00
Forum: IMagick
Topic: Unable to get correct image when converting SVG to PNG
Replies: 0
Views: 5698

Unable to get correct image when converting SVG to PNG

I've got SVG HTML code generated by svg.js library. Using PHP's Imagick I want to convert SVG HTML to PNG. PHP: $imagick = new \Imagick(); $imagick->readimageblob($svg); $imagick->setimageformat('png32'); $imagick->writeimage(WWW_DIR . '/files/12.png'); $imagick->clear(); $imagick->destroy(); SVG ...