mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-11-11 04:07:21 +03:00
Support reading P mode TIFF images with padding
This commit is contained in:
parent
f8160b858a
commit
bb2411dd01
|
@ -244,6 +244,7 @@ OPEN_INFO = {
|
||||||
(MM, 3, (1,), 2, (4,), ()): ("P", "P;4R"),
|
(MM, 3, (1,), 2, (4,), ()): ("P", "P;4R"),
|
||||||
(II, 3, (1,), 1, (8,), ()): ("P", "P"),
|
(II, 3, (1,), 1, (8,), ()): ("P", "P"),
|
||||||
(MM, 3, (1,), 1, (8,), ()): ("P", "P"),
|
(MM, 3, (1,), 1, (8,), ()): ("P", "P"),
|
||||||
|
(II, 3, (1,), 1, (8, 8), (0,)): ("P", "PX"),
|
||||||
(II, 3, (1,), 1, (8, 8), (2,)): ("PA", "PA"),
|
(II, 3, (1,), 1, (8, 8), (2,)): ("PA", "PA"),
|
||||||
(MM, 3, (1,), 1, (8, 8), (2,)): ("PA", "PA"),
|
(MM, 3, (1,), 1, (8, 8), (2,)): ("PA", "PA"),
|
||||||
(II, 3, (1,), 2, (8,), ()): ("P", "P;R"),
|
(II, 3, (1,), 2, (8,), ()): ("P", "P;R"),
|
||||||
|
|
|
@ -1582,6 +1582,7 @@ static struct {
|
||||||
{"P", "P", 8, copy1},
|
{"P", "P", 8, copy1},
|
||||||
{"P", "P;R", 8, unpackLR},
|
{"P", "P;R", 8, unpackLR},
|
||||||
{"P", "L", 8, copy1},
|
{"P", "L", 8, copy1},
|
||||||
|
{"P", "PX", 16, unpackL16B},
|
||||||
|
|
||||||
/* palette w. alpha */
|
/* palette w. alpha */
|
||||||
{"PA", "PA", 16, unpackLA},
|
{"PA", "PA", 16, unpackLA},
|
||||||
|
|
Loading…
Reference in New Issue
Block a user