ExifTool Forum

ExifTool => The "exiftool" Application => Topic started by: anithegregorian on April 14, 2014, 05:54:21 AM

Title: Use string prefix while batch tagging
Post by: anithegregorian on April 14, 2014, 05:54:21 AM
Hi,

I'm trying to set EXIF imagedescription tag by using image filename without extension. So far this works:

exiftool "-exif:imagedescription<basename" -r -ext .jpg * -overwrite_original

While this works perfectly well, can I add a string prefix to imagedescription. Something like:

MYIMAGE-FILENAME

So the imagedescription tag become PREFIX followed by FILENAME
Title: Re: Use string prefix while batch tagging
Post by: Phil Harvey on April 14, 2014, 07:25:40 AM
Try this:

exiftool "-exif:imagedescription<MYIMAGE=$basename" -r -ext .jpg * -overwrite_original

The above double quotes are used in Windows.  Use single quotes instead if you are on Mac or Linux.

- Phil