I've come across an odd problem with the following code:
Code: Select all
$image = new Imagick($real_location);
$ident = $image->identifyImage();
$format = $ident['colorSpace'];
An example photo is a JPG at 72dpi, 3008x2000, EXIF data included, RGB, 8Bit-channel.
If i run it like below, its fine:
Code: Select all
exec("identify -format %r ".$real_location,$output);
In my PHP error log i get the following:
Code: Select all
httpd: magick/option.c:1264: GetImageOption: Assertion `image_info != (ImageInfo *) ((void *)0)' failed.
[Mon Mar 26 15:40:26 2012] [notice] child pid 1582 exit signal Aborted (6)