mirror of
https://github.com/bertptrs/aur.git
synced 2025-12-25 20:40:32 +01:00
upgpkg: python-pydicom 2.4.4-1
upstream release Implement patch from https://github.com/pydicom/pydicom/pull/1908 to deal with newer Pillow version in arch repos
This commit is contained in:
16
python-pydicom/pillow-10.1.patch
Normal file
16
python-pydicom/pillow-10.1.patch
Normal file
@@ -0,0 +1,16 @@
|
||||
diff --git a/pydicom/pixel_data_handlers/pillow_handler.py b/pydicom/pixel_data_handlers/pillow_handler.py
|
||||
index ff781025d..adcab9c80 100644
|
||||
--- a/pydicom/pixel_data_handlers/pillow_handler.py
|
||||
+++ b/pydicom/pixel_data_handlers/pillow_handler.py
|
||||
@@ -129,7 +129,10 @@ def _decompress_single_frame(
|
||||
image.tile[0][2],
|
||||
(color_mode, ''),
|
||||
)]
|
||||
- image.mode = color_mode
|
||||
+ if hasattr(image, "_mode"):
|
||||
+ image._mode = color_mode
|
||||
+ else:
|
||||
+ image.mode = color_mode
|
||||
image.rawmode = color_mode
|
||||
return image
|
||||
|
||||
Reference in New Issue
Block a user