Showing posts with label imagick. Show all posts
Showing posts with label imagick. Show all posts

Wednesday, May 9, 2012

Tuesday, February 14, 2012

How to read an SVG with a given size using PHP Imagick?


I have the following code:




$image = new Imagick();
$image->setBackgroundColor(new ImagickPixel('green'));
$image->setSize(20,20);
$image->readImageBlob(file_get_contents('./some/path/image.svg'));