We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e908e10 commit 8cfc256Copy full SHA for 8cfc256
Tests/test_lib_pack.py
@@ -764,10 +764,12 @@ def test_I16(self):
764
self.assert_unpack("I;16", "I;16N", 2, 0x0201, 0x0403, 0x0605)
765
self.assert_unpack("I;16B", "I;16N", 2, 0x0201, 0x0403, 0x0605)
766
self.assert_unpack("I;16L", "I;16N", 2, 0x0201, 0x0403, 0x0605)
767
+ self.assert_unpack("I;16N", "I;16N", 2, 0x0201, 0x0403, 0x0605)
768
else:
769
self.assert_unpack("I;16", "I;16N", 2, 0x0102, 0x0304, 0x0506)
770
self.assert_unpack("I;16B", "I;16N", 2, 0x0102, 0x0304, 0x0506)
771
self.assert_unpack("I;16L", "I;16N", 2, 0x0102, 0x0304, 0x0506)
772
+ self.assert_unpack("I;16N", "I;16N", 2, 0x0102, 0x0304, 0x0506)
773
774
def test_CMYK16(self):
775
self.assert_unpack("CMYK", "CMYK;16L", 8, (2, 4, 6, 8), (10, 12, 14, 16))
src/libImaging/Unpack.c
@@ -1762,6 +1762,7 @@ static struct {
1762
{"I;16", "I;16", 16, copy2},
1763
{"I;16B", "I;16B", 16, copy2},
1764
{"I;16L", "I;16L", 16, copy2},
1765
+ {"I;16N", "I;16N", 16, copy2},
1766
1767
{"I;16", "I;16N", 16, unpackI16N_I16}, // LibTiff native->image endian.
1768
{"I;16L", "I;16N", 16, unpackI16N_I16}, // LibTiff native->image endian.
0 commit comments