ExifTool Forum

ExifTool => The "exiftool" Application => Topic started by: nevodka on October 10, 2012, 01:40:49 AM

Title: Copy XMP description to title
Post by: nevodka on October 10, 2012, 01:40:49 AM
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
Title: Re: Copy XMP description to title
Post by: Phil Harvey on October 10, 2012, 07:04:04 AM
The problem is that "%f.jpg" doesn't specify the directory.  Instead, use "%d%f.jpg", or even simpler, "@" for the -tagsFromFile argument.

- Phil
Title: Re: Copy XMP description to title
Post by: nevodka on October 10, 2012, 07:43:06 AM
Thanks a lot, now working perfect!