I have a lot photos and recently I tried opening an older photo and it came up black, the next photo in the folder displayed properly except the bottom 10% of the photo was garbled green blocks, and all other photos in the folder were fine. I checked my backup drive and the files were bad on it as well, luckily I had an older backup drive and the files were ok on it. So sometime between when I did the old backup and the new backup, the files went bad on my iMac.
But now I'm wondering, was this an isolated incident out my 30,000 photos, or are there more files like this? How can I find them so I'm not backing up bad files, or overwriting good files with bad files just because the file size hasn't changed. I use carbon copy cloner for backups and it has an option for detecting corrupted files, but checksum doesn't identify that these jpg's are bad, that they don't display properly.
Any advice would be greatly appreciated!
jpeginfo -c ...
to check your pics. Some types of corruption won't be detected probably. Somejpeginfo ... grep ... xargs/exec ... mv ...
magic is needed to search dirs and subdirs and move the corrupted pics. – klanomath Mar 01 '17 at 16:27