ExifTool not showing user defined tags

Started by sripvk1234, June 22, 2015, 04:56:07 AM

Previous topic - Next topic

sripvk1234

Hi,

I added user defined IPTC Tag to image file using exiftool configuration file. But i'm not able to see that tag in output of  "exiftool -g a.jpg" command.

exiftool.config

%Image::ExifTool::UserDefined = (
   'Image::ExifTool::IPTC::ApplicationRecord' => {
        # Example 4.  IPTC:NewIPTCTag
        160 => {
            Name => 'Car',
            Format => 'string[0,16]',
        },
);

Adding data to tag by executing below command:

exiftool.exe -config exiftool.config -IPTC:Car=BMW a.jpg
output: 1 image files updated

I'm not able to see the tag in output of 'exiftool -g a.jpg' command. But i'm see tag details after using -v2 option

exiftool.exe -v2 a.jpg

IPTCData (SubDirectory) -->                                     
- Tag 0x0404 (52 bytes)                                         
+ [IPTC directory, 52 bytes]                                     
| CurrentIPTCDigest = .~..C.E^w..K....                           
| -- IPTCEnvelope record --                                     
| CodedCharacterSet = .%G                                       
| - Tag 0x005a, IPTCEnvelope record (3 bytes, string[0,32])     
| EnvelopeRecordVersion = 4                                     
| - Tag 0x0000, IPTCEnvelope record (2 bytes, int16u)   
| -- IPTCApplication record --                                   
| ApplicationRecordVersion = 0                                   
| - Tag 0x0000, IPTCApplication record (2 bytes, int16u)         
| IPTC_ApplicationRecord_160 = BMW                               
| - Tag 0x00a0, IPTCApplication record (3 bytes)         
 


Here tag is showing as "IPTC_ApplicationRecord_160".

1. How to get original tag name defined in configuration file?
2. How to get tag details when i ran "exiftool.exe -g a.jpg" command?

Phil Harvey

For IPTC, you must also use the config file when extracting to be able to see the custom tags.

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

sripvk1234

Thanks for very quick reply

I'm seeing tag name when i use the configuration file while extracting metadata using '-g' option.

1. Why tag name is defined as " IPTC_ApplicationRecord_160" for IPTC?
2. What is significance of ''-g" option?

Phil Harvey

Quote from: sripvk1234 on June 30, 2015, 12:17:57 AM
1. Why tag name is defined as " IPTC_ApplicationRecord_160" for IPTC?

This is the automatically-generated name for this unknown IPTC tag when the -u or -v option is used.

Quote2. What is significance of ''-g" option?

See the application documentation for all the details.

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

sripvk1234

Thanks Phil

I have not used -u or -v options while writing meta information. Below is the commands used to invoke the exiftool

exiftool -config exiftool.config -IPTC:AssetName="Test.JPG" Test.JPG

This command is executed successfully and IPTC user defined tag is created as IPTC_ApplicatonRecord_160

Phil Harvey

Quote from: sripvk1234 on July 09, 2015, 12:49:25 AM
I have not used -u or -v options while writing meta information.

No, I meant when reading, not writing.

Quoteexiftool -config exiftool.config -IPTC:AssetName="Test.JPG" Test.JPG

This command is executed successfully and IPTC user defined tag is created as IPTC_ApplicatonRecord_160

The question is not how you write this tag, but how you read it.

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