On 24/10/14 11:30, Mark Rogers wrote:
On 24 October 2014 11:19, Mark Rogers mark@quarella.co.uk wrote:
I'm looking for tools that can postprocess these files, but looking around I'm seeing people discussing the problem as if it's just one of those things. Does anyone have any experience of this sort of thing?
There's something about asking a question that makes me think of other ways to search for information, and that lead me here: http://www.cgsecurity.org/wiki/After_Using_PhotoRec
That (a) tells me there are some tools to automate the sort and (b) still nobody seems to be looking at the post-processing aspect. However, the scripts there would work as a starting point to add the post processing in. What I really need are ways to fix files that I am absolutely sure don't throw away any data. I'm pretty sure "mogrify file.gif" is OK (the resulting file is identical to the original up to the point where the rubbish is stripped, for the files I've tested) but (for example) I need to be sure that no meta info is lost.
There's a program called exiftool (and I'm sure many others) that if you say exiftool jpegname.jpg will output the exif info to the console. I'm sure you could knock up a script to output the exif info from the bad and the fixed files and then compare them, and stop on any errors.
HTH Steve