newPseudoImage not working - please help!
Posted: 2017-07-17T03:01:32-07:00
Hi
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
I haven't had any problems with any of the other imagemagick/imagick functionality, everything works except newPseudoImage so I'm really confused!
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.
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.