Document damaged by disk error

AL
Posted By
Andrew_L_Slayman
Mar 3, 2009
Views
478
Replies
2
Status
Closed
I’m getting this error when opening two specific PSD files in Photoshop CS3 on Windows XP Pro:

"This document has been damaged by a disk error…"

I’ve been testing hard drives and memory, as well as looking at other files, and as of now I think it’s not a systematic problem; rather, I suspect that these two files were damaged when migrating from my old computer.

I have two questions for anyone out there who has troubleshot this issue before:

1. One of the files has a violent green stripe 50-100 pixels wide in Photoshop, but when opened in Gimp it looks fine except for two individual pixels that are pure green. The other has a blue stripe across it in Photoshop, but looks fine in Gimp. (I am comparing specifically the background, without any layers.) Why would the Photoshop and Gimp views of the same image differ so widely?

2. Does anyone know of a script that can check all files for this error? Sitting there opening all of my thousands of PSDs one at a time seems like a royal pain, and something that could be automated by someone who knows how…

Many thanks,
Andrew

How to Master Sharpening in Photoshop

Give your photos a professional finish with sharpening in Photoshop. Learn to enhance details, create contrast, and prepare your images for print, web, and social media.

M
Mylenium
Mar 3, 2009
Why would the Photoshop and Gimp views of the same image differ so widely?

PS may figure in additional info and scan the entire document, while Gimp and others may read it on the fly, ignoring other data and simply stopping the on-screen rendering/ display, when they encounter defective pixel data. Regarding checking: Nothing you could or would do with a script, as it would require accessing the binary data structure. I would simply run an action and create a web gallery or smaller versions of the files, all in one folder, so you can view them more easily. if they contain errors, the processing would expose those using PS’ native routines and they’d show up in the mini-versions. Outside processing could be done with Gimp or another image viewer such as XnView, so you have a point of comparison, where applicable.

Mylenium
AL
Andrew_L_Slayman
Mar 3, 2009
Mylenium,

Thanks a lot for the suggestions.

I rescued the files by opening them in Gimp, saving (just the background) to a TIFF, opening the TIFF in Photoshop, and recreating the layers manually. Now the files open without error, and there are no apparent errors in the images, even when inspected at 1:1. Good as new, to my eye.

Re batching to detect damaged files, Photoshop hangs on the "document…damaged" error when opening damaged files, even while batching. So you have to sit there and click "OK" or "Cancel" each time the dialog comes up. Also, batch doesn’t log this particular error to the errors log, so you have to keep track of which ones are generating errors manually.

Anyone know how to override the "document…damaged" error dialog, and force it to log the dialog as an error to the batch error file?

Thanks again,
Andrew

How to Master Sharpening in Photoshop

Give your photos a professional finish with sharpening in Photoshop. Learn to enhance details, create contrast, and prepare your images for print, web, and social media.

Related Discussion Topics

Nice and short text about related topics in discussion sections