ExifTool Forum

ExifTool => Newbies => Topic started by: jordanmm on June 18, 2013, 11:33:54 PM

Title: Warning: Shift value for IPTC:Credit is not a number
Post by: jordanmm 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

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.
Title: Re: Warning: Shift value for IPTC:Credit is not a number
Post by: Phil Harvey 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 (https://exiftool.org/TagNames/index.html) to see which tags support lists.

- Phil
Title: Re: Warning: Shift value for IPTC:Credit is not a number
Post by: jordanmm 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?
Title: Re: Warning: Shift value for IPTC:Credit is not a number
Post by: Phil Harvey 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