Corrupted images (partial grey jpeg)
Posted: 2010-12-08T08:12:43-07:00
Hi,
I don`t know if it's a bug with ImageMagick but here is our problem:
We are using ImageMagick in our photo Webservice (several thousand photos a day) and I would say that more than 99% of the time the pictures are resized correctly. The remaining 1% is composed of partial grey images (I guess corrupted image). We are using ImageMagick with ‘exec convert’ in a php script. We are able to get the error by redirecting the ‘stderr’ to ‘stdout’.
So basically it’s the resize function that seems to be the problem. If a specific image is corrupted, we are able to regenerate it using the same script with the same arguments so the problem is not the original photo.
My question is: is it possible that ImageMagick fail in the process of transforming an image, didn’t return any errors but returned an incomplete (partial) image?
Here are the versions of the software we use:
Php 5.0
ImageMagick 6.2.4 (We will update to the latest version as soon as possible)
Linux Ubuntu 6.06.1 LTS
Any hint will be appreciated,
Thanks a lot!
I don`t know if it's a bug with ImageMagick but here is our problem:
We are using ImageMagick in our photo Webservice (several thousand photos a day) and I would say that more than 99% of the time the pictures are resized correctly. The remaining 1% is composed of partial grey images (I guess corrupted image). We are using ImageMagick with ‘exec convert’ in a php script. We are able to get the error by redirecting the ‘stderr’ to ‘stdout’.
So basically it’s the resize function that seems to be the problem. If a specific image is corrupted, we are able to regenerate it using the same script with the same arguments so the problem is not the original photo.
My question is: is it possible that ImageMagick fail in the process of transforming an image, didn’t return any errors but returned an incomplete (partial) image?
Here are the versions of the software we use:
Php 5.0
ImageMagick 6.2.4 (We will update to the latest version as soon as possible)
Linux Ubuntu 6.06.1 LTS
Any hint will be appreciated,
Thanks a lot!