cgohlke / imagecodecs

Image transformation, compression, and decompression codecs
https://pypi.org/project/imagecodecs
BSD 3-Clause "New" or "Revised" License
111 stars 21 forks source link

Properly check dtype of numpy arrays #52

Closed Entropy512 closed 1 year ago

Entropy512 commented 1 year ago

.char is not a valid attribute of an array, but is a valid attribute of array.dtype

This causes errors when trying to use transferfunction. (will try to reproduce tomorrow, I've move to using gamma to allow unbounded profiles - see https://ninedegreesbelow.com/photography/lcms2-unbounded-mode.html - a preliminary implementation of gamma support is in the next pull request

cgohlke commented 1 year ago

Thank you! Obviously that functionality was never finished or tested.

I'll integrate the patch in the next release.

cgohlke commented 1 year ago

unbounded profiles - see https://ninedegreesbelow.com/photography/lcms2-unbounded-mode.html

Nice. Thanks for the link.

cgohlke commented 1 year ago

Fixed in v2022.12.22.