ExifTool Forum

ExifTool => Bug Reports / Feature Requests => Topic started by: blue-j on October 18, 2020, 09:27:15 PM

Title: Discrete data in radiance:command duplicate
Post by: blue-j on October 18, 2020, 09:27:15 PM
I've found that radiance:command repeats twice with diverging data in the attached file (using -a).  Is this behavior expected?

radiance:command     # Generated with IBR image class (MPI Informatik)

radiance:command      - pfilt -x 1024 -y 676

I suspect they belong together.

- J
Title: Re: Discrete data in radiance:command duplicate
Post by: StarGeek on October 18, 2020, 09:39:50 PM
It's possible.  I'm not familiar with the format so I can't comment really.  But depending upon the format, there are legitimate times that the same tag name will appear more than once.  For example, an MKV file has it's data in multiple TagName/TagString pairs.  Example output:
TagName                         : ENCODER
TagString                       : Lavc58.18.100 libvorbis
TagName                         : DURATION
TagString                       : 01:01:43.003000000


Then there are plenty of times when some program would write the data badly  For example, I have a couple files where the IPTC IIM chunk is repeated 5 times.  Here's a short output.  The actual blocks are in varying degrees of completeness.
C:\>exiftool -g1 -a -s -ShortDocumentID Y:\!temp\!Odd_Metadata_Chunks\0419113238478_088_Five_IPTC_Chunks.jpg
---- IPTC ----
ShortDocumentID                 : 3685602812
---- IPTC2 ----
ShortDocumentID                 : 3821268188
---- IPTC3 ----
ShortDocumentID                 : 3685602812
---- IPTC4 ----
ShortDocumentID                 : 3821268188
---- IPTC5 ----
ShortDocumentID                 : 3685602812
Title: Re: Discrete data in radiance:command duplicate
Post by: Phil Harvey on October 18, 2020, 10:31:07 PM
Here is the header for the file you attached:

#?RADIANCE
# Generated with IBR image class (MPI Informatik)
FORMAT=32-bit_rle_rgbe
pfilt -x 1024 -y 676
EXPOSURE=3.523009e-01

-Y 676 +X 1024


ExifTool is currently returning any header line that doesn't contain an "=" sign in a Command tag.  Technically, it would be better if lines beginning with "#" are returned as a Comment.  I should probably change this.

But a Radiance file may have many Command lines which are returned as separate tags.

- Phil
Title: Re: Discrete data in radiance:command duplicate
Post by: Phil Harvey on October 29, 2020, 04:04:36 PM
ExifTool 12.09 (just released) extracts the comments separately.

- Phil
Title: Re: Discrete data in radiance:command duplicate
Post by: blue-j on November 01, 2020, 09:56:38 PM
Thanks so much!!! I confirm that it works perfectly.  - J