 |
Forums |
Admin Discussion Forums: help Start New Thread
| Message: 100007 |
 |
BY: Richard Eagleton (reagleton) DATE: 2012-11-06 23:44 SUBJECT: RMagick corrupting its own images?? I'm using Ruby 1.8.7 and RMagick 2.13.1 and I've been getting some strange intermittent errors with RMagick. They are basically one of the following two errors,
corrupt image `/home/cms/maah/production/core/../tmp/precache/Marine_biology_laboratory_woods_hole_mass_1892_jpg_1429x806_m.png' @ error/png.c/ReadPNGImage/3120
improper image header `/home/cms/maah/production/core/../tmp/precache/Watson_Cholesterol_Model_jpeg_451x409_m.png' @ error/png.c/ReadPNGImage/3082
Basically, the application is attempting to create a resized version of a source image.
When these images are uploaded, they are converted and resized no problem. Then, *some images* cause the errors when they are resized again.
If I try a third and subsequent time with the same images, then the resizing occurs no problem.
I have been unable to find any pattern to the errors nor isolate a particular image which will always fail and so cannot reliably reproduce the error. As I said, it is an intermittent error but is happening with enough regularity to cause me major headaches with the client.
Any suggestions or thoughts on where I go to from here would be greatly appreciated... | |
Thread View
| Thread |
Author |
Date |
 |
RMagick corrupting its own images?? | Richard Eagleton | 2012-11-06 23:44 | |
Post a followup to this message
|
 |