Black level tag returns incorrect values

Started by nickspiker, September 14, 2022, 12:07:34 PM

Previous topic - Next topic

nickspiker

Could be missing something but I'm pretty sure this is a bug.
I'm running Ubuntu and version 12.40 of exiftool
Here's what I get from running exiftool Caseandtarget.dng
Black Level : 40 20 0
but the actual blackpoint is 4,097
and here's a link to the .dng

Phil Harvey

> exiftool Caseandtarget.dng -subfiletype -blacklevel -G1 -a
[IFD0]          Subfile Type                    : Reduced-resolution image
[SubIFD]        Subfile Type                    : Full-resolution image
[SubIFD1]       Subfile Type                    : Reduced-resolution image
[SubIFD2]       Subfile Type                    : Reduced-resolution image
[SubIFD3]       Subfile Type                    : Reduced-resolution image
[SubIFD]        Black Level                     : 4097 4097 4097
[SubIFD3]       Black Level                     : 40 20 0

There are multiple BlackLevel tags in this file.  I think you are interested in SubIFD:BlackLevel.

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

wywh

Use -a to show duplicate tags:

exiftool -a -G1 -s Caseandtarget.dng
[...]
[SubIFD]        BlackLevel                      : 4097 4097 4097
[...]
[SubIFD3]       BlackLevel                      : 40 20 0
[...]

- Matti

nickspiker

Quote from: Phil Harvey on September 14, 2022, 12:36:21 PM> exiftool Caseandtarget.dng -subfiletype -blacklevel -G1 -a
[IFD0]          Subfile Type                    : Reduced-resolution image
[SubIFD]        Subfile Type                    : Full-resolution image
[SubIFD1]       Subfile Type                    : Reduced-resolution image
[SubIFD2]       Subfile Type                    : Reduced-resolution image
[SubIFD3]       Subfile Type                    : Reduced-resolution image
[SubIFD]        Black Level                     : 4097 4097 4097
[SubIFD3]       Black Level                     : 40 20 0

There are multiple BlackLevel tags in this file.  I think you are interested in SubIFD:BlackLevel.

- Phil

Awesome!
Totally makes sense.  Not sure why that didn't occur to me.