Problems with iptc_set 118

Discussions on NConvert - the command line tool for image conversion and manipulation

Moderators: XnTriq, helmut, xnview

User avatar
Peter2
XnThusiast
Posts: 1338
Joined: Thu Nov 24, 2005 3:07 pm
Location: CH

Problems with iptc_set 118

Post by Peter2 »

I use

Code: Select all

-iptc_set 118 "MyTestString"
which should be http://www.exiv2.org/iptc.html

Code: Select all

0x0076 	118 	Iptc.Application2.Contact 	String 	No 	Yes 	0 	128 	Identifies the person or organisation which can provide further background information on the object data.
But analysing it with Exiftool it appears under "Content Location String", exporting it with XnView shows "Location"

:?: :?: :?: :?:

Peter
XnViewMP 1.6.5 German, XnConvert 1.99, Win 10
User avatar
Peter2
XnThusiast
Posts: 1338
Joined: Thu Nov 24, 2005 3:07 pm
Location: CH

Re: Problems with iptc_set 118

Post by Peter2 »

Hmmmh - seem to be a problem of Codes ...

What is the right code for "DateCreated": 55 (Dec) or 37 (Hex)?

It seems that I can use Dec-values for "100; 101; 103; 105; 115; 116; 12; 120; 55; 92; "; only "118" (dec - Contact) is converted to 27 (Hex - ContentLocationName)

When I Use "-iptc_set 27", then it creates "Contact".

Bug or Feature?

Peter
XnViewMP 1.6.5 German, XnConvert 1.99, Win 10
User avatar
xnview
Author of XnView
Posts: 43833
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: Problems with iptc_set 118

Post by xnview »

It uses the decimal value of field
You can set Contact with '-iptc_set 118'?? 27 is 'content location name'
Pierre.
User avatar
Peter2
XnThusiast
Posts: 1338
Joined: Thu Nov 24, 2005 3:07 pm
Location: CH

Re: Problems with iptc_set 118

Post by Peter2 »

xnview wrote:...You can set Contact with '-iptc_set 118'?? 27 is 'content location name'
Yes. As written above, I use

Code: Select all

'-iptc_set 118 "John Doe, Neverland"', 
and when I open it (with different software) I get:

Code: Select all

ContentLocationName: John Doe, Neverland
Peter
XnViewMP 1.6.5 German, XnConvert 1.99, Win 10