Page 1 of 1

Have problems in a random places while execution php script

Posted: 2011-05-22T13:19:49-07:00
by SPolischook
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:

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
On line 24 I have

Code: Select all

$image = new Imagick($file);
System:
OS - Ubuntu Server 11.04
Apache 2.0
imagick module version - 3.0.1
ImageMagick version - ImageMagick 6.6.2-6

Re: Have problems in a random places while execution php scr

Posted: 2011-05-23T08:46:01-07:00
by SPolischook
Ok, I think I soloved the problem. My problem is that the image that I whant to process have size 0 bite.