Have problems in a random places while execution php script
Posted: 2011-05-22T13:19:49-07:00
Hi all!
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:
On line 24 I have
System:
OS - Ubuntu Server 11.04
Apache 2.0
imagick module version - 3.0.1
ImageMagick version - ImageMagick 6.6.2-6
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