ExifTool Forum

ExifTool => Newbies => Topic started by: Xof60 on March 06, 2017, 04:30:44 PM

Title: Copy keyword to Exif:ImageDescription
Post by: Xof60 on March 06, 2017, 04:30:44 PM
Hello,
I just start working with ExifTool.

I will reorganising my old jpg-files and like to copy or move the keywords (-xmp-dc:Subject) into the Xmp:Description (-XMP-dc:Description) and Exif:ImageDescription (-IFD0:ImageDescription).
Can this be done with ExifTool for a folder with several hundreds of files?

Thank you very much for your support.
Title: Re: Copy keyword to Exif:ImageDescription
Post by: StarGeek on March 06, 2017, 05:27:32 PM
This can be done, but it needs some clarification.

Do you wish to overwrite Description and ImageDescription?  Or append the contents of Subject to those tags?

To overwrite (replace FileOrDir with the files or directory to process):
exiftool "-Description<Subject" "-ImageDescription<Subject" FileOrDir

To append
exiftool "-Description<Subject" "-Description<$Description $Subject" "-ImageDescription<Subject" "-ImageDescription<$ImageDescription $Subject" FileOrDir
If either Description or ImageDescription doesn't exist for a file, then a minor error is thrown but can be safely ignored.
Title: Re: Copy keyword to Exif:ImageDescription
Post by: Xof60 on March 09, 2017, 01:56:40 PM
Thankyou, that saved me a lot of time. :) :) :)