Skip to content

Commit 02915c7

Browse files
authored
Merge pull request #7996 from radarhere/tiff_px
2 parents 37a8364 + bb2411d commit 02915c7

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

Diff for: src/PIL/TiffImagePlugin.py

+1
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,7 @@
245245
(MM, 3, (1,), 2, (4,), ()): ("P", "P;4R"),
246246
(II, 3, (1,), 1, (8,), ()): ("P", "P"),
247247
(MM, 3, (1,), 1, (8,), ()): ("P", "P"),
248+
(II, 3, (1,), 1, (8, 8), (0,)): ("P", "PX"),
248249
(II, 3, (1,), 1, (8, 8), (2,)): ("PA", "PA"),
249250
(MM, 3, (1,), 1, (8, 8), (2,)): ("PA", "PA"),
250251
(II, 3, (1,), 2, (8,), ()): ("P", "P;R"),

Diff for: src/libImaging/Unpack.c

+1
Original file line numberDiff line numberDiff line change
@@ -1582,6 +1582,7 @@ static struct {
15821582
{"P", "P", 8, copy1},
15831583
{"P", "P;R", 8, unpackLR},
15841584
{"P", "L", 8, copy1},
1585+
{"P", "PX", 16, unpackL16B},
15851586

15861587
/* palette w. alpha */
15871588
{"PA", "PA", 16, unpackLA},

0 commit comments

Comments
 (0)