[SOLVED] Corrupted jpeg files in the gallery.
gazol
Joined: 2002-09-09
Posts: 16 |
Posted: Wed, 2012-07-11 08:11 |
I have a 50k+ gallery and a problem with a few corrupted jpegs. I used jpeginfo to detect the corrupt jpegs and replaced them from a backup, but when I run the command again new files shows up. I'm running ubuntu in kvm so I have reinstalled the server and deployed the gallery again and I still get the same error. I also tried setting up a nfs share from the physical machine and tried putting the album folder there. Still new broken images shows up. I'm not experiencing any filesystem corruption that I know of. So I started to think maybe it's actually jpeginfo that is making the corruption? Is there any other tool then jpeginfo to check for corrupted jpegs? Regards,
|
|
Posts: 1642
Note that the important thing is not detecting corrupted jpegs as such but knowing why your jpegs should be getting corrupted in the first place which is a strange thing to be happening consistently.
Are you sure that you actually have corrupted jpegs and not just that the resizes and/or thumbs are not getting built at times?
--
dakanji.com
Posts: 16
If I look at a broken image it's easy to see it's corrupt also jpeginfo -c woul report something like this:
1600 x 1200 24bit Exif N 631378 Corrupt JPEG data: 98 extraneous bytes before marker 0xd9 [WARNING]
But I'm trying out a new software to look for corruption right now Bad Peggy, and it doesn't seem to corrupt the images, also report the same result every run.
I will get back with the results, it takes a long time to run i through.
Posts: 16
Using a application called Bad Peggy to check jpeg integrity and it gives the same result every time and do not corrupt images.
Be sure to have a backup before using jpeginfo -c.
Posts: 1
I have the same problem. What can i do?
Thanks
Posts: 16
Here is what I did.
I was lucky since I had a few backups and was able to restore my images.
First do a backup of your machine, this simple if it's virtual.
Then I made a nfs share of my albums folder in read only and did the scan from another host with Bad Peggy and restored all the files that were corrupted.