ExifTool Forum

ExifTool => The "exiftool" Application => Topic started by: Dr.Pat on May 04, 2023, 04:28:25 AM

Title: Metadata tag order
Post by: Dr.Pat on May 04, 2023, 04:28:25 AM
Greetings everyone,

Regarding running ExifTool with command lines on a Windows computer, I'm trying to analyze the same JPEG picture over and over playing with the different running options in order to establish a metadata extraction methodology.

So far, the command line I'm using is :

exiftool -a -U -P -e IMG_0001.JPG

The main goal is to extract any metadata present within the image file without changing the exact hierarchical order of the metadata.

Moreover, I would like to extract each tag with its metadata location (5) without grouping the tags together which obviously would change the hierarchical order in the output compared to the real tag order within the file.

Is there a way to know if ExifTool first read the metadata in their exact order of appearance within the image file and generates an output respecting the same order?

Furthermore, would you have any recommendations on how to proceed with the command line in order to output the metadata precise location of each tag without grouping them?

In any case, thank you in advance and kind regards!

Dr.Pat
Title: Re: Metadata tag order
Post by: StarGeek on May 04, 2023, 11:26:41 AM
Use the -v3 (-verbose3) option (https://exiftool.org/exiftool_pod.html#v-NUM--verbose) option to see how the the data is embedded in the file.

Understand, that the order listed in one file may be completely different in another.  Each program/app/camera will write metadata in different ways.  See FAQ #9 (https://exiftool.org/faq.html#Q9).
Title: Re: Metadata tag order
Post by: Dr.Pat on May 08, 2023, 07:46:54 AM
Thank you very much!  :)