Copy CameraTemperature as a tag

Started by José Oliver-Didier, April 11, 2010, 04:56:56 PM

Previous topic - Next topic

José Oliver-Didier

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/" ?
blog: http://jmoliver.wordpress.com
flickr:  http://flickr.com/jmoliver

Phil Harvey

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

José Oliver-Didier

Thanks Phil,

Still, that command erases any existing tag. I would like to add the tag with the temp reading to the list.
blog: http://jmoliver.wordpress.com
flickr:  http://flickr.com/jmoliver

Phil Harvey

No problem.  To add to the existing list, use +<:

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

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

José Oliver-Didier

blog: http://jmoliver.wordpress.com
flickr:  http://flickr.com/jmoliver