Trying to change a User Defined Field... (the IPTC Application Record 208)

Started by demianill, February 10, 2017, 06:07:58 AM

Previous topic - Next topic

demianill

Dear friends,

Please, forgive my poor English !
I need your help !!!

With the command

   exiftool c:\user\Souza\desktop\Acervo\Aig44825.jpg -iptc:all -u

I figured out that the IPTC Application Record 208 has the information I need to change in more than 20.000 files

So, I used the command

   exiftool -csv -ext jpg -r -u -IPTC_ApplicationRecord_208  c:\user\Souza\desktop\Acervo  > Field208.csv

to retrieve all information in this field. Works fine !!!

After edit the file Field208.csv and make the necessary corrections in this field for all images, it is ready to be applied again.

I tried

   exiftool -u -csv=Field208.csv -ext jpg -charset UTF8 c:\user\Souza\desktop\Acervo

The answer was:
    1 directories scanned
    0 image files updated
   20.773 image files unchanged


So, I tried
   exiftool -u -IPTC_ApplicationRecord_208 -csv=Field208.csv -ext jpg -charset UTF8  c:\user\Souza\desktop\Acervo

The answer was:
Ignored superfluous tag name or invalid option: -IPTC_ApplicationRecord_208
    1 directories scanned
    0 image files updated
   20.773 image files unchanged


Ok, it was superfluous !!!  I understand !!!

Then, I tried to change only a single file, using

   exiftool Aig44825.jpg -u -IPTC_ApplicationRecord_208="Shelf449"

The answer was:
Warning: Tag 'IPTC_ApplicationRecord_208' is not defined
Nothing to do.



Please, how can I apply new value to the field IPTC_ApplicationRecord_208 ?
I'm not an IT guy, I'm just a photographer and I'm organizing a big collection for the company I work...

Thanks, thanks thanks !

Best regards,

Demian.


Hayo Baan

The first line in the csv should be the names of the tags in each of the columns. Does your csv file have the correct column labels?
Hayo Baan – Photography
Web: www.hayobaan.nl

Phil Harvey

Hi Demian,

A tag must be defined for ExifTool to write it.  You can do this with a user-defined tag.  See the NewIPTCTag definition in the sample config file for an example of how to do this.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

demianill

Dear Phil, thanks !

After your tip, I searched here in this forum for some examples.
For me, it is very dificult to understand, because I'm not the IT Professional.
But, I found your answer for a previous questions and then I created a small config file, named IPTC_config, with the following lines:

%Image::ExifTool::UserDefined = (
    'Image::ExifTool::IPTC::ApplicationRecord' => {
        208 => {
            Name => 'IPTC208',
            Format => 'string[0,24]',
        },
    },
);
1; #end


Then, I executed the following command line:

exiftool -config IPTC_config -csv=0010-NUMCD.csv -ext jpg -charset UTF8 c:\user\Souza\desktop\Acervo

The result was:
    1 directories scanned
20773 image files updated


Absolutely perfect !!!

Thanks for your help and patience !!!

Phil Harvey

Great.  I take it you also renamed the column heading in your CSV file to "IPTC208".  Glad you figured this out.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

demianill

Quote from: Phil Harvey on February 10, 2017, 12:11:32 PM
Great.  I take it you also renamed the column heading in your CSV file to "IPTC208".  Glad you figured this out.

- Phil

Yes !

This is a little part of the .csv file:

SourceFile,IPTC208
ATG00207.jpg,CurDSV_3
ATG00208.jpg,CurDSV_3
ATG00270.jpg,CurDSV_3
ATG006039.jpg,CurDSV_84
ATG006041.jpg,CurDSV_84
ATG006043.jpg,CurDSV_84
ATG006044.jpg,CurDSV_84
ATG006047.jpg,CurDSV_84
ATG006050.jpg,CurDSV_84
ATG006051.jpg,CurDSV_84
ATG006057.jpg,CurDSV_84
ATG006082.jpg,CurDSV_84
ATG006083.jpg,CurDSV_84
ATG006084.jpg,CurDSV_84
ATG006085.jpg,CurDSV_84
ATG006086.jpg,CurDSV_84
ATG006087.jpg,CurDSV_84
ATG006088.jpg,CurDSV_84
ATG006089.jpg,CurDSV_84
ATG006090.jpg,CurDSV_84
ATG006097.jpg,CurDSV_84
ATG006098.jpg,CurDSV_84
ATG006099.jpg,CurDSV_84
ATG006101.jpg,CurDSV_85
ATG006102.jpg,CurDSV_85
ATG006103.jpg,CurDSV_85
ATG006104.jpg,CurDSV_85
ATG006105.jpg,CurDSV_85
ATG006106.jpg,CurDSV_85
ATG006107.jpg,CurDSV_85
ATG006108.jpg,CurDSV_85
ATG006109.jpg,CurDSV_85
ATG006110.jpg,CurDSV_85
ATG006116.jpg,CurDSV_85
ATG006117.jpg,CurDSV_85
ATG006118.jpg,CurDSV_85
ATG006120.jpg,CurDSV_85
ATG006128.jpg,CurDSV_85
ATG006129.jpg,CurDSV_85
ATG006130.jpg,CurDSV_85
ATG006131.jpg,CurDSV_85
ATG006132.jpg,CurDSV_85
ATG006133.jpg,CurDSV_85
ATG006134.jpg,CurDSV_85
ATG006135.jpg,CurDSV_85
ATG006136.jpg,CurDSV_85
ATG006137.jpg,CurDSV_85
ATG006138.jpg,CurDSV_85
ATG006139.jpg,CurDSV_85
ATG006146.jpg,CurDSV_85
ATG006154.jpg,CurDSV_85
ATG006213.jpg,CurDSV_86
ATG006220.jpg,CurDSV_86
ATG006249.jpg,CurDSV_86
ATG006262.jpg,CurDSV_86
ATG006263.jpg,CurDSV_86
ATG006264.jpg,CurDSV_86
ATG006281.jpg,CurDSV_86
ATG006282.jpg,CurDSV_86
ATG006284.jpg,CurDSV_86
ATG006287.jpg,CurDSV_86
ATG006288.jpg,CurDSV_86
ATG006387.jpg,CurDSV_87
ATG006388.jpg,CurDSV_87
ATG006392.jpg,CurDSV_87
ATG006393.jpg,CurDSV_87
ATG006394.jpg,CurDSV_87
ATG006395.jpg,CurDSV_87
ATG006396.jpg,CurDSV_87
ATG006397.jpg,CurDSV_87
ATG006398.jpg,CurDSV_87
ATG006401.jpg,CurDSV_88
ATG006402.jpg,CurDSV_88
ATG006403.jpg,CurDSV_88
ATG006404.jpg,CurDSV_88
.
.
.
.

demianill

Hi Phil and friends !

Once more, forgive my poor English.

In my previous post (two years ago) I asked (and learned) how to define a custom IPTC field.
Now, managing the same assets, I figured out that I need to use and change the information in another field: the XMP CustomField9.

To find the information (and the name of the field I need to work) I used the command

exiftool -a -s -G Hn2052.jpg and

The response was:

.
.
.
[XMP]           SupplementalCategories          : Historico
[XMP]           FixtureIdentifier               : 29
[XMP]           ReferenceNumber                 : Foto
...
[XMP]           History                         : Texto gravado, E=TXT D=2008-02-19 T=16:04:33 U=scwh, E=TXT D=2008-02-25 T=16:45:03 U=scwh
[XMP]           CustomField9                    : Histórico 47
...
[XMP]           Title                           : Hn00002052
[XMP]           Subject                         : Imagem da coleção corporativa
[XMP]           Creator                         : set.1951
.
.
.



I need to apply or change the information to this field CustomField9, in more than 20.000 images.

My config file has the definition of the IPTC field 208 (and this field must remain):

%Image::ExifTool::UserDefined = (
    'Image::ExifTool::IPTC::ApplicationRecord' => {
        208 => {
            Name => 'IPTC208',
            Format => 'string[0,24]',
        },
    },
);
1; #end


How can I add a new definition of a new XMP (not IPTC) field ?
I tried to duplicate the block of lines and change the word "IPTC" to "XMP" and the add name CustomField9, but nothing happens !

Please, help me !

Once again, thanks a lot !

Phil Harvey

XMP is a bit more complicated because you need to determine the URI and namespace prefix for the custom tag.  Use this to see the raw XMP:

exiftool -xmp -b FILE

Then see the sample config file for examples of how to add user-defined XMP tags with a new namespace.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

demianill

Quote from: Phil Harvey on March 13, 2019, 12:45:39 PM
XMP is a bit more complicated because you need to determine the URI and namespace prefix for the custom tag.  Use this to see the raw XMP:

exiftool -xmp -b FILE

Then see the sample config file for examples of how to add user-defined XMP tags with a new namespace.

- Phil


Wow !  It's very complicated !
I will try to understand !

Phil, once more, thank you !!!

Demian.