Have problems in a random places while execution php script

IMagick is a native PHP extension to create and modify images using the ImageMagick API. ImageMagick Studio LLC did not write nor does it maintain the IMagick extension, however, IMagick users are welcome to discuss the extension here.
Post Reply
SPolischook
Posts: 4
Joined: 2011-05-22T13:01:57-07:00
Authentication code: 8675308

Have problems in a random places while execution php script

Post 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
SPolischook
Posts: 4
Joined: 2011-05-22T13:01:57-07:00
Authentication code: 8675308

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

Post by SPolischook »

Ok, I think I soloved the problem. My problem is that the image that I whant to process have size 0 bite.
Post Reply