Author Topic: Warning: Shift value for IPTC:Credit is not a number  (Read 2483 times)

jordanmm

  • Newbie
  • *
  • Posts: 4
Warning: Shift value for IPTC:Credit is not a number
« on: June 18, 2013, 11:33:54 PM »
Hi, I've encountered a problem when trying to write any IPTC data to a file except for keywords. Keywords works fine with the regular command line but when I try any other tag such as credit by using exiftool -credit+=PhotographerName *.jpg I get this warning
Code: [Select]
Warning: Shift value for IPTC:Credit is not a number
Nothing to do.

I don't understand why it would work fine with the keywords but not with any other tag that I try. I need to be able to write the 'caption', 'credit' and 'CopyrightNotice' tags. Please help, thanks.

Phil Harvey

  • ExifTool Author
  • Administrator
  • ExifTool Freak
  • *****
  • Posts: 17510
    • ExifTool Home Page
Re: Warning: Shift value for IPTC:Credit is not a number
« Reply #1 on: June 19, 2013, 08:03:52 AM »
The += operator is used to add items for list-type tags, and increment/decrement numbers for non-list-type tags.  If you get this warning it is because IPTC:Credit does not support a list of values.  See the tag name documentation to see which tags support lists.

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

jordanmm

  • Newbie
  • *
  • Posts: 4
Re: Warning: Shift value for IPTC:Credit is not a number
« Reply #2 on: June 19, 2013, 10:18:19 AM »
If I want I insert 'Jordan mares manton' into the credit tag what would be the command line that I would have to use?

Phil Harvey

  • ExifTool Author
  • Administrator
  • ExifTool Freak
  • *****
  • Posts: 17510
    • ExifTool Home Page
Re: Warning: Shift value for IPTC:Credit is not a number
« Reply #3 on: June 19, 2013, 10:31:26 AM »
On Mac/Linux:

exiftool '-credit<$credit Jordan mares manton' FILE

or on Windows:

exiftool "-credit<$credit Jordan mares manton" FILE

Add a -m to the commands if you want to write the tag even if Credit didn't previously exist.

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