Adobe Forums sent me here - Fixing a Lightroom mistake via exiftool

Started by john.mcLaughlin, February 04, 2013, 11:22:22 AM

Previous topic - Next topic

john.mcLaughlin

http://forums.adobe.com/thread/1140662

Greetings.  Hats off to you Phil for your fantastic utility, and also to all the other users in your community.

I have made an error while learning Lightroom :-\

I have two sets of photos, the originals 1920x1080, and the reduced versions watermarked @ 640x360. In short, I wrongly added all the titles and captions to the 640x360 versions, and need to import that metadata info into the original 1920x1080 files.  I have about 300 photos. Both sets of photos have the same name, but are in separate directories.

The example I found is;
exiftool -TagsFromFile source.jpg -title -author=Phil dest.jpg

So I tried (among other variations)
exiftool -TagsFromFile J:\sync\1\*.jpg  -title –caption  j:\sync\2\*.jpg

and it reports (this is just one of many errors)
File 'j:\sync\1\*.jpg' does not exist for –tagsFromFile option

j:\sync\1\*.jpg is the source directory with all the photos containing the correct metadata
J:\sync\2\*.jpg is the destination directory with the (empty metadata) photos I need updated from the \1\ source directory

Where am I going wrong?  I am not usually the type to just ask for the answer, but my head is mush from reading, any help would be greatly appreciated.


Thanks in advance!

Phil Harvey

I think the command you are looking for is:

exiftool -tagsfromfile j:\sync\1\%f.%e -xmp:all -ext jpg j:\sync\2\

Here I am using -xmp:all because I think these are probably the tags you want to copy.

- 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 ($).

john.mcLaughlin

Thanks Phil, I was way off, that worked like a charm.  May I post the correct command syntax on the adobe forums?

Phil Harvey

...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 ($).