Only code
Code: Select all
echo 'getVersion: ';
var_dump (Imagick::getVersion()).' <br />';
$image_file = 'firefox-error.png';
exec("/usr/local/bin/identify -verbose ".$image_file,$out);
print_r($out);
$im = new Imagick();
$im->readImage($image_file);
echo 'getImageFormat: ';
var_dump($im->getImageFormat()).' <br />';
Sample image and code - tmp.zip
OS - FreeBSD 8.0 RELEASE
PHP- 5.2.16
pecl-imagick - 3.0.1 (downgrade to 3.0.0 - no result)
ImageMagick 6.6.5.10 (it works)
A service to Internet, all ok
OS - FreeBSD 8.1 STABLE
PHP- 5.2.16
pecl-imagick - 3.0.0
ImageMagick 6.6.2.10
I will answer only 8.01