Copy XMP description to title

Started by nevodka, October 10, 2012, 01:40:49 AM

Previous topic - Next topic

nevodka

Hello,
I'm just trying to copy the XMP description to title in batch of JPG files (fields are named "Description" and "Document Title" in Photoshop).
I try to use this code:
exiftool -tagsfromfile %f.jpg -ext jpg -"XMP:Description>XMP:Title" -overwrite_original D:\Test
but get the error:

Warning: Error opening file - 1.jpg
Warning: Error opening file - 2.jpg
.....
Warning: Error opening file - 19.jpg
    1 directories scanned
    0 image files updated
   19 image files unchanged


What's wrong in code? Maybe i wrote the XMP tags wrong?
Win7 x64

Phil Harvey

The problem is that "%f.jpg" doesn't specify the directory.  Instead, use "%d%f.jpg", or even simpler, "@" for the -tagsFromFile argument.

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

nevodka