ExifTool Forum

ExifTool => Archives => Topic started by: Archive on May 12, 2010, 08:53:55 AM

Title: Query by tag number
Post by: Archive on May 12, 2010, 08:53:55 AM
[Originally posted by linuxuser on 2006-07-26 22:08:58-07]

exiftool -q -q -H -G -U -a original.jpg | grep "Sequence Number"
[MakerNotes]    0x002b Sequence Number                 : 3 -  How can I query the tag 0x002b to get an answer of 3 using exiftool?
Title: Re: Query by tag number
Post by: Archive on May 12, 2010, 08:53:55 AM
[Originally posted by exiftool on 2006-07-27 01:15:22-07]

I'm not sure what you're asking.  The only way you can address this tag is via its tag name, "SequenceNumber".
And if you want only the value returned, use "-s -S".  Is this what you want?:

Code:
> exiftool -s -S -sequencenumber original.jpg
3

- Phil
Title: Re: Query by tag number
Post by: Archive on May 12, 2010, 08:53:55 AM
[Originally posted by linuxuser on 2006-07-27 02:32:29-07]

I know that I can use -sequencenumber but I would like to know if I can use something with 0x002b to query the tag? Does -sequencenumber work with makernotes of different makes? Since you cannot create a unique identification with date and time I am looking for a workaround and I believe it could be a solution to use YYMMDDHHMMSSsequencenumber. Since makernotes could be deleted by an image manipulation program I am also looking for a probably unused tag, which could be used for the sequence number. Any ideas? Thank you!
Title: Re: Query by tag number
Post by: Archive on May 12, 2010, 08:53:55 AM
[Originally posted by exiftool on 2006-07-27 12:00:04-07]

Only unknown tags can be accessed by number, but unknown tags are not
writable anyway.  I suggest using EXIF:ImageUniqueID if you want to store
a unique identifier in the image, but this tag should be formatted as a
string of 32 hexadecimal digits, so it may not be exactly what you are
looking for.  There is also an EXIF:ImageNumber tag, but it is not currently
writable because it is not commonly used.

- Phil
Title: Re: Query by tag number
Post by: Archive on May 12, 2010, 08:53:55 AM
[Originally posted by linuxuser on 2006-07-27 12:31:44-07]

Should or must "EXIF:ImageUniqueID" be formatted as 32 hexadecimal digits? Can you make the EXIF:ImageNumber tag writable?
Title: Re: Query by tag number
Post by: Archive on May 12, 2010, 08:53:55 AM
[Originally posted by exiftool on 2006-07-27 13:19:55-07]

To conform with the EXIF specification, it must be 32 hex digits.  However, I have seen other software
that does not use this convention (I have samples written by Capture One that use a syntax like
"560037191-1171779").

And I will make EXIF:ImageNumber writable.
Title: Re: Query by tag number
Post by: Archive on May 12, 2010, 08:53:55 AM
[Originally posted by ran on 2006-07-27 14:15:55-07]

 
Hi, I have a really interesting opportunity for configuration managers who have experience with configuration tools in a high tech company.
If you are interested, or know any one who might be - contact me:
Ran Peled, 054-2270760
ran@mishoo.co.il
Good Luck!