Skip to content

Commit 7b17f9b

Browse files
authored
Merge pull request #7415 from radarhere/tiff
2 parents d46de52 + 016f899 commit 7b17f9b

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

docs/releasenotes/10.1.0.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,3 +58,9 @@ Added support for DDS 8-bit color indexed images
5858
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
5959

6060
Support has been added to read PALETTEINDEXED8 DDS files as P mode images.
61+
62+
Support reading signed 8-bit YCbCr TIFF images
63+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
64+
65+
TIFF images with unsigned integer data, 8 bits per sample and a photometric
66+
interpretation of YCbCr can now be read.

src/PIL/TiffImagePlugin.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,8 @@
251251
(II, 5, (1,), 1, (8, 8, 8, 8, 8, 8), (0, 0)): ("CMYK", "CMYKXX"),
252252
(MM, 5, (1,), 1, (8, 8, 8, 8, 8, 8), (0, 0)): ("CMYK", "CMYKXX"),
253253
(II, 5, (1,), 1, (16, 16, 16, 16), ()): ("CMYK", "CMYK;16L"),
254+
(II, 6, (1,), 1, (8,), ()): ("L", "L"),
255+
(MM, 6, (1,), 1, (8,), ()): ("L", "L"),
254256
# JPEG compressed images handled by LibTiff and auto-converted to RGBX
255257
# Minimal Baseline TIFF requires YCbCr images to have 3 SamplesPerPixel
256258
(II, 6, (1,), 1, (8, 8, 8), ()): ("RGB", "RGBX"),

0 commit comments

Comments
 (0)