schoolpost / PiDNG

Create Adobe DNG RAW files using Python. Works with any Bayer RAW Data including native support for Raspberry Pi cameras.
MIT License
199 stars 37 forks source link

Support uncompressed float32 images #77

Closed DmitriyKorchemkin closed 1 year ago

DmitriyKorchemkin commented 1 year ago

DNG 1.4 supports floating-point images.

This might be useful for saving post-processing (HDR, etc) results.

According to DNG spec a different algorithm (deflate) should be used for floating-point data, thus a runtime error is raised if compression is requested for floating-point data.