Image-ExifTool - Re: rewrite all tags

Posted on Thu Jul 17 13:58:06 2008 by exiftool in response to 8340 (See the whole thread of 5)
Re: rewrite all tags
So you didn't have backups of the originals from before they were corrupted? I always recommend keeping copies of your original images if possible.

To rebuild the meta information for all files in a directory hierarchy, you could do this:

exiftool -r -overwrite_original -all= -tagsfromfile @ -all:all DIR

This command deletes all meta information then copies it back from the original file, rebuilding it in the process.

As usual I would recommend you keep backups. I have added the -overwrite_original option under this assumption. Otherwise you can take out this option and exiftool will do the backups for you.

If you get minor errors, you can use the -m option to ignore them. This may happen since you say the files are corrupted.

Also, if you get makernote offset errors, you may want to add a -F option to enable exiftool to attempt to fix the offsets.

If you want to send me a sample image (phil at owl.phy.queensu.ca), I can give a more informed answer.

- Phil
Direct Responses: 8346 | Write a response