WhiteLevel is not a 4bytes int32u[n]! but a 2 bytes, int16u

Started by M.Carlsen, April 23, 2014, 12:29:23 PM

Previous topic - Next topic

M.Carlsen

Hi --- All the DNG Files I have, report as :

20) WhiteLevel = 60074
  |     - Tag 0xc61d (2 bytes, int16u[1]):

but after exiftool writes a new value it then reports

21) WhiteLevel = 15000
  |     - Tag 0xc61d (4 bytes, int32u[1]):

And that causes the apps to NOT read the value at all.
--- How is that to be explained

Thanks
Morten

Phil Harvey

Hi Morten,

Explanation:  The apps you are using to read this value are crap. ;)

According to the DNG specification, this value may be stored as either a TIFF SHORT or LONG.  ExifTool writes it as a LONG so it doesn't haven't worry about overflowing the SHORT.

If you really need to write a SHORT (int16u), then you can override the ExifTool definition with a user-defined tag in the config file.

But I recommend submitting bug reports to the authors of your other apps.

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

M.Carlsen

Hi Phil,

thanks for your prompt reply and also for your amazing presence, generally.


How would I go about doing what you suggest.

Is there an "Easy" string to enter somewhere or could you point me to documentation specifics ?

Thanks a whole lot,

-- Best
Morten

M.Carlsen

Phil,

I figured it out. Great.

The Crappy apps are Adobe's Speedgrade and PPRO ;-)

Phil Harvey

Quote from: M.Carlsen on April 23, 2014, 07:45:08 PM
The Crappy apps are Adobe's Speedgrade and PPRO ;-)

Why am I not surprised.  Adobe only wrote the DNG specification, but they have repeated demonstrated that they don't read their own specs.

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