Imagick::flattenImages crashes script

IMagick is a native PHP extension to create and modify images using the ImageMagick API. ImageMagick Studio LLC did not write nor does it maintain the IMagick extension, however, IMagick users are welcome to discuss the extension here.
Post Reply
mythix

Imagick::flattenImages crashes script

Post by mythix »

I've got the following code:

Code: Select all

$img = new Imagick($src);
$img->flattenImages();
$img->writeImage( $this->settings[$model->alias]['dir_thumbs'].$dest_dir.DS.$file.'.gif' );
works fine (with jpg, gif, png, pdf) untill i try this with a PSD file, my script crashes, i get no errors, just a whitescreen and my session seems to get deleted...
My login script saves users to session, and after that whitescreen i am logged out so...

I also have ghostscript installed.

ImageMagick 6.3.7 02/18/08 Q16
mkoppanen
Posts: 309
Joined: 2007-06-09T07:06:32-07:00

Re: Imagick::flattenImages crashes script

Post by mkoppanen »

Unable to reproduce with the latest Imagick and ImageMagick 6.4.8-4.
Mikko Koppanen
My blog: http://valokuva.org
mythix

Re: Imagick::flattenImages crashes script

Post by mythix »

When ghostscript is installed can i check that with phpinfo(), because i can't find a trace of ghostscript in there right now...
Post Reply