Corrupted image files
Over the past year or so, I've noticed some of my image files becoming corrupted from time to time, but recently this issue has been occurring quite often, sometimes affecting a dozen files in a 300 image import.
All of my photos are referenced on an external hard drive outside my Aperture and Photos libraries. The libraries are on my Mac's internal drive, but to be fair, I have noticed this issue only in Aperture—probably because I never use Photos. The corruption does not occur during the import process because it sometimes affects files that were created (via third-party plug-ins) after the images were added to the library. In almost every case, I have been unable to restore from the Time Machine backup because the backup copy seems to have been added to the backup after the corruption occurred.
Here's an example of what I'm dealing with:
Those lines are basically the original content offset and wrapped around from the other side of the image. It would be an easy(-ish) fix if they were a straight wrap, but several of the lines are broken on the top and bottom edge, making a kind of slanted edge which is very difficult to correct with any degree of accuracy.
The above image was shot in 2013, but that TIFF conversion was performed in the last few weeks. Nevertheless, the backup copy shows the same corruption, indicating the file was corrupted before the backup was made, or the backup copy and the copy in the library have both been corrupted in the exact same way, something I find highly unlikely.
I know Aperture isn't supposed to change the original file content in any way, so I'm hesitant to blame the app. On the other hand, I was importing some images today and 10-15 of them showed this same corruption immediately after the import. Luckily, I never delete files from the memory card until I need to re-use the card, so I had the originals that I could use to replace the bad files on my external disk. Up to now, I have been using the camera's JPEG previews as Aperture's previews, but after today's fiasco I've switched off that feature and from now on Aperture will create its own previews immediately after import of every image, so I can see right away which files are okay and which ones are damaged.
Is it possible that Aperture is damaging the files in some way as it transports them from the memory card to the external hard drive? Could it be the Finder that is causing the issue? Could it be my less-than-six-month-old external hard drive that is corrupting the files as they are transferred to the disk? Is there any way for me to check these systems to find out which one is the definitive culprit? Has anyone else had this problem?
iMac, OS X Yosemite (10.10.1), 27" iMac Core i7 Quad 12GB