Updating metadata from another dir

Started by marciano, December 26, 2010, 02:20:34 PM

Previous topic - Next topic

marciano

For an unknown reason Photoshop erases Camera Temperature metadata.
I have a directory containing 100 edited images without that info.
The original files (non edited) are stored in a DVD with a lot of more extra images.
Regarding that file names are the same I want to take that info from the original files and to add it to the edited file.
I was facing a similar problem in the past and solved with this command:

exiftool -tagsfromfile /OriginalDir/%f.%e -cameratemperature  /EditedDir

In that occasion both dirs contained the same files, nothing more. This is not the same case here where are a lot of non involved jpgs.
For each one of these I get Warning: Error opening file - /Volumes/.../IMG_nnnn.jpg
For the rest, nothing has changed.
How can I solve this situation?
Thank you.

Phil Harvey

You can't avoid the "Error opening file" message if the file doesn't exist, but it doesn't cause any problems since the command will do nothing in this case.

But for the ones that do exist, the problem is that you can't write a single makernotes tag.  You must copy the entire maker notes (this is the very last point in FAQ number 23):

exiftool -tagsfromfile SRCFILE -makernotes DSTFILE

This command assumes that Make and Model tags exist in DSTFILE.  If not, you must also copy this by adding -make -model to the command.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

marciano

Okay, I understand. I copied makernotes and got what I needed.
Thank you very much!