Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DNG compression use faulty method #111

Open
rolkar opened this issue Jun 22, 2018 · 1 comment
Open

DNG compression use faulty method #111

rolkar opened this issue Jun 22, 2018 · 1 comment

Comments

@rolkar
Copy link
Contributor

rolkar commented Jun 22, 2018

The compression of 16 bit DNG data uses method 8, ZIP.

But, this method shall, according to the 1.4 spec, only be used for 32 bit integer and 64 bit float data.

16 bit data shall use method 7, which is lossless JPEG Huffman encoding.

The reasons for the choice of non compliant compression are

  • The method 7 is not obvious how to implement
  • Method 8 is supported by Adobe products (even though it is not in the spec)

This is not a good choice, and should be fixed.

@rolkar
Copy link
Contributor Author

rolkar commented Jun 24, 2018

Some more info from a personal message on DPReview from 'geni1105'.

geni1105

BTW, some warning messages given out by Adobe DNG SDK, which I now use for my prototype QuickLook plugin:

iMac:DNG-testfiles georgniedrist$ qlmanage -p DP2M1372.X3F.dng
Testing Quick Look preview with files:
DP2M1372.X3F.dng
*** Warning: Missing or invalid UniqueCameraModel ***
*** Error: ZIP compression is limited to floating point and 32-bit integer and transparency masks (SubIFD 1) ***

Readily understandable, but does not harm ...

KR Georg

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant