From 616ed35e74660ecfaf33de7b79a9024ce2571675 Mon Sep 17 00:00:00 2001 From: Andrew Murray Date: Thu, 21 Sep 2023 20:53:23 +1000 Subject: [PATCH 1/3] Support reading 8-bit YCbCr TIFF images --- src/PIL/TiffImagePlugin.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/PIL/TiffImagePlugin.py b/src/PIL/TiffImagePlugin.py index 5d3bc4f838b..996dac4afdd 100644 --- a/src/PIL/TiffImagePlugin.py +++ b/src/PIL/TiffImagePlugin.py @@ -251,6 +251,8 @@ (II, 5, (1,), 1, (8, 8, 8, 8, 8, 8), (0, 0)): ("CMYK", "CMYKXX"), (MM, 5, (1,), 1, (8, 8, 8, 8, 8, 8), (0, 0)): ("CMYK", "CMYKXX"), (II, 5, (1,), 1, (16, 16, 16, 16), ()): ("CMYK", "CMYK;16L"), + (II, 6, (1,), 1, (8,), ()): ("L", "L"), + (MM, 6, (1,), 1, (8,), ()): ("L", "L"), # JPEG compressed images handled by LibTiff and auto-converted to RGBX # Minimal Baseline TIFF requires YCbCr images to have 3 SamplesPerPixel (II, 6, (1,), 1, (8, 8, 8), ()): ("RGB", "RGBX"), From 9ae8d900efaf08b920017b3e9a31eba6e8df386b Mon Sep 17 00:00:00 2001 From: Andrew Murray Date: Fri, 6 Oct 2023 10:02:35 +1100 Subject: [PATCH 2/3] Added release notes --- docs/releasenotes/10.1.0.rst | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/docs/releasenotes/10.1.0.rst b/docs/releasenotes/10.1.0.rst index da5153cceef..f399357dd6c 100644 --- a/docs/releasenotes/10.1.0.rst +++ b/docs/releasenotes/10.1.0.rst @@ -48,7 +48,8 @@ TODO Other Changes ============= -TODO -^^^^ +Support reading signed 8-bit YCbCr TIFF images +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -TODO +TIFF images with unsigned integer data, 8 bits per sample and a photometric +interpretation of YCbCr can now be read. From 016f8998f9334769d544f680c8a74421e72aed79 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Fri, 6 Oct 2023 00:40:40 +0000 Subject: [PATCH 3/3] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- docs/releasenotes/10.1.0.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/releasenotes/10.1.0.rst b/docs/releasenotes/10.1.0.rst index 0fc2df0532a..af995dc15b4 100644 --- a/docs/releasenotes/10.1.0.rst +++ b/docs/releasenotes/10.1.0.rst @@ -63,4 +63,4 @@ Support reading signed 8-bit YCbCr TIFF images ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ TIFF images with unsigned integer data, 8 bits per sample and a photometric -interpretation of YCbCr can now be read. \ No newline at end of file +interpretation of YCbCr can now be read.