mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-26 09:14:27 +03:00
Add Tiff Encodings for 2/4 Bit Grayscale Images
Added decoding support for 2/4 bit grayscale tiff images, including inverted and/or bit-order-reversed formats.
This commit is contained in:
parent
46134f78d2
commit
aa0636d811
|
@ -146,8 +146,23 @@ OPEN_INFO = {
|
|||
(II, 1, (1,), 2, (1,), ()): ("1", "1;R"),
|
||||
(MM, 1, (1,), 2, (1,), ()): ("1", "1;R"),
|
||||
|
||||
(II, 0, (1,), 1, (2,), ()): ("L", "L;2I"),
|
||||
(MM, 0, (1,), 1, (2,), ()): ("L", "L;2I"),
|
||||
(II, 0, (1,), 2, (2,), ()): ("L", "L;2IR"),
|
||||
(MM, 0, (1,), 2, (2,), ()): ("L", "L;2IR"),
|
||||
(II, 1, (1,), 1, (2,), ()): ("L", "L;2"),
|
||||
(MM, 1, (1,), 1, (2,), ()): ("L", "L;2"),
|
||||
(II, 1, (1,), 2, (2,), ()): ("L", "L;2R"),
|
||||
(MM, 1, (1,), 2, (2,), ()): ("L", "L;2R"),
|
||||
|
||||
(II, 0, (1,), 1, (4,), ()): ("L", "L;4I"),
|
||||
(MM, 0, (1,), 1, (4,), ()): ("L", "L;4I"),
|
||||
(II, 0, (1,), 2, (4,), ()): ("L", "L;4IR"),
|
||||
(MM, 0, (1,), 2, (4,), ()): ("L", "L;4IR"),
|
||||
(II, 1, (1,), 1, (4,), ()): ("L", "L;4"),
|
||||
# ?
|
||||
(MM, 1, (1,), 1, (4,), ()): ("L", "L;4"),
|
||||
(II, 1, (1,), 2, (4,), ()): ("L", "L;4R"),
|
||||
(MM, 1, (1,), 2, (4,), ()): ("L", "L;4R"),
|
||||
|
||||
(II, 0, (1,), 1, (8,), ()): ("L", "L;I"),
|
||||
(MM, 0, (1,), 1, (8,), ()): ("L", "L;I"),
|
||||
|
|
Loading…
Reference in New Issue
Block a user