My php script may resize and add white border to images. Number of pictures over 20 000 and the total size of more than 3 GB. When I run the script in the browser in different places it gives an error:
Code: Select all
Fatal error: Uncaught exception 'ImagickException' with message 'no decode delegate for this image format `/tmp/magick-XXYM0Gb0' @ error/constitute.c/ReadImage/532' in /var/www/prestai/resize-images.php on line 24 ImagickException: no decode delegate for this image format `/tmp/magick-XXYM0Gb0' @ error/constitute.c/ReadImage/532 in /var/www/prestai/resize-images.php on line 24 Call Stack: 0.0020 351844 1. {main}() /var/www/prestai/resize-images.php:0 300.6292 1985864 2. Imagick->__construct() /var/www/prestai/resize-images.php:24
Code: Select all
$image = new Imagick($file);
OS - Ubuntu Server 11.04
Apache 2.0
imagick module version - 3.0.1
ImageMagick version - ImageMagick 6.6.2-6