ImagingDataCommons / highdicom

High-level DICOM abstractions for the Python programming language
https://highdicom.readthedocs.io
MIT License
172 stars 37 forks source link

Errors with pillow>=10.0.0: AttributeError: module 'PIL.ImageCms' has no attribute 'INTENT_RELATIVE_COLORIMETRIC' #243

Closed CPBridge closed 10 months ago

CPBridge commented 1 year ago

Pillow 10.0.0 included some breaking changes to the organisation of constants in the PIL.ImageCms module. Values that were previously module-level constants are now enums, e.g. PIL.ImageCms.INTENT_RELATIVE_COLORIMETRIC is now PIL.ImageCms.Intent.RELATIVE_COLORIMETRIC. The result is that functionality associated with color is broken when using highdicom with Pillow>=10.0.0.

If you are having issues, please downgrade to pillow<=10.0.0

CPBridge commented 10 months ago

This was resolved in the latest release 0.22.0