I've been struggling with this for several days now, so I'm hoping someone can guide me in the right direction.
I'm trying to get newPseudoImage working but any scripts with it in keeps throwing up a 500 Internal Server Error.
Example taken from http://phpimagick.com/Imagick/newPseudoImage
Code: Select all
<?php
newPseudoImage('logo');
function newPseudoImage($canvasType)
{
$imagick = new \Imagick();
$imagick->newPseudoImage(300, 300, $canvasType);
$imagick->setImageFormat("png");
header("Content-Type: image/png");
echo $imagick->getImageBlob();
}
?>
I'm running ImageMagick 6.8.9-9 Q16 x86_64 on Ubuntu 16.04
If anyone has any suggestions I would be very grateful.