ExifTool Forum

ExifTool => The "exiftool" Application => Topic started by: José Oliver-Didier on April 11, 2010, 04:56:56 PM

Title: Copy CameraTemperature as a tag
Post by: José Oliver-Didier on April 11, 2010, 04:56:56 PM
I would like to add the camera temperature as a keyword tag in the form of:

Temperature/25 C

I use the command:

exiftool -addTagsFromFile @ "-keywords<CameraTemperature" *.jpg

which simply adds the temperature as a tag, how can I append the string: "Temperature/" ?
Title: Re: Copy CameraTemperature as a tag
Post by: Phil Harvey on April 11, 2010, 07:50:47 PM
Try this:

exiftool "-keywords<Temperature/$CameraTemperature" -ext jpg .

But note that on Mac or Linux you must use single quotes instead of double quotes around the keywords argument due to the dollar sign.

- Phil
Title: Re: Copy CameraTemperature as a tag
Post by: José Oliver-Didier on April 11, 2010, 09:58:29 PM
Thanks Phil,

Still, that command erases any existing tag. I would like to add the tag with the temp reading to the list.
Title: Re: Copy CameraTemperature as a tag
Post by: Phil Harvey on April 12, 2010, 07:21:49 AM
No problem.  To add to the existing list, use +<:

exiftool "-keywords+<Temperature/$CameraTemperature" -ext jpg .

- Phil
Title: Re: Copy CameraTemperature as a tag
Post by: José Oliver-Didier on April 12, 2010, 08:03:58 AM
Thanks Phil!