Author Topic: Add New IPTC Tags?  (Read 1021 times)

pixeldroid

  • Newbie
  • *
  • Posts: 3
Add New IPTC Tags?
« on: November 12, 2016, 07:00:05 PM »
Hello:
I am trying to create custom IPTC tags.  I'm probably missing something simple.
Looking elsewhere on your site, I found a thread explaining how to add custom IPTC tags by adding them to a config file.  This worked, but the tags written do not have the description that I need.
For example to add a tag “Title”, I used:
Code: [Select]
'Image::ExifTool::IPTC::ApplicationRecord' => {
    # Example 4.  IPTC:NewIPTCTag
    160 => {
        Name => 'Title',
        Format => 'string[0,75]',
    },
This worked, but the command
Code: [Select]
exiftool -config “C:\Program Files (x86)\exiftool\exif_custom.cfg“ -Title="Title of This Image" “myImage.jpg”created the tag:
PTC Application Record 160: Title of This Image

Using Adobe Bridge, I’ve been able to add the tags that I need, namely “Object Name”, “By-line” and “Caption-Abstract”.
After creating those tags, I can edit them in exifTool:

Code: [Select]
exiftool  -ObjectName="myName" -By-line="Authored By" -Caption-Abstract=”My Description.  Blah, blah, blah”  “myImage.jpg”
I tried a few other ideas in the config file, but I’m sure I’m messing up my image.  Could you tell me how I can create those IPTC tags?
Thanks.

Phil Harvey

  • ExifTool Author
  • Administrator
  • ExifTool Freak
  • *****
  • Posts: 16883
    • ExifTool Home Page
Re: Add New IPTC Tags?
« Reply #1 on: November 12, 2016, 09:34:13 PM »
I don't know why you are trying to create custom IPTC tags.  The IPTC tags you mention (ObjectName, Caption-Abstract and By-line) are part of the IPTC standard.   ExifTool can create them if they don't exist (as well as edit them as you discovered).

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

pixeldroid

  • Newbie
  • *
  • Posts: 3
Re: Add New IPTC Tags?
« Reply #2 on: November 12, 2016, 10:38:23 PM »
Duh.
I told you I was probably missing something simple...
Thanks.