Author Topic: Copy CameraTemperature as a tag  (Read 2779 times)

José Oliver-Didier

  • Full Member
  • ***
  • Posts: 31
    • José Oliver-Didier
Copy CameraTemperature as a tag
« 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/" ?

Phil Harvey

  • ExifTool Author
  • Administrator
  • ExifTool Freak
  • *****
  • Posts: 16664
    • ExifTool Home Page
Re: Copy CameraTemperature as a tag
« Reply #1 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
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

José Oliver-Didier

  • Full Member
  • ***
  • Posts: 31
    • José Oliver-Didier
Re: Copy CameraTemperature as a tag
« Reply #2 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.

Phil Harvey

  • ExifTool Author
  • Administrator
  • ExifTool Freak
  • *****
  • Posts: 16664
    • ExifTool Home Page
Re: Copy CameraTemperature as a tag
« Reply #3 on: April 12, 2010, 07:21:49 AM »
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, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

José Oliver-Didier

  • Full Member
  • ***
  • Posts: 31
    • José Oliver-Didier
Re: Copy CameraTemperature as a tag
« Reply #4 on: April 12, 2010, 08:03:58 AM »
Thanks Phil!