Copy metadata from files from dir to dir

Started by Archive, May 12, 2010, 08:54:42 AM

Previous topic - Next topic

Archive

[Originally posted by photonoxx on 2009-11-21 10:29:52-08]

Hi,

I experienced an issue with NEF metadata editing in digikam (exiv2) and the result is, for the moment, the edited files are unopenable in CaptureNX.

With exiftool, I succeed to make edited files openable again by copying exif infos from an unedited backup version of the file with this command :

exiftool -exif:all= -tagsfromfile original.nef -exif:all edited.nef

As true I have a lot of file, I would like to know if it could be possible to apply this command to all the files of a directory, assuming original and edited files have the same names but are in separate directory.

Thanks a lot for any answer

Nicolas

Archive

[Originally posted by exiftool on 2009-11-21 11:42:05-08]

Hi Nicolas,

Yes.  This command should do it for you:

Code:
exiftool -exif:all= -tagsfromfile SRCDIR/%f.nef -exif:all -ext nef DSTDIR

Where SRCDIR is the directory containing your originals, and DSTDIR
contains the images you want to fix.

- Phil

Archive

[Originally posted by photonoxx on 2009-11-21 13:22:51-08]

Thanks Phil,

I try this tonight.

And Thanks for Exiftool which are a really great tool (my only deception is there not really powerfull GUI for it on Linux)

Nicolas