mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-25 17:36:18 +03:00
Tests for 16bit tiff
This commit is contained in:
parent
6422592196
commit
846f986bc8
BIN
Tests/images/tiff_16bit_RGBa.tiff
Normal file
BIN
Tests/images/tiff_16bit_RGBa.tiff
Normal file
Binary file not shown.
|
@ -51,6 +51,14 @@ class TestFileTiff(PillowTestCase):
|
||||||
self.assertEqual(im.tile, [('raw', (0, 0, 55, 43), 8, ('RGBa', 0, 1))])
|
self.assertEqual(im.tile, [('raw', (0, 0, 55, 43), 8, ('RGBa', 0, 1))])
|
||||||
im.load()
|
im.load()
|
||||||
|
|
||||||
|
def test_16bit_RGBa_tiff(self):
|
||||||
|
im = Image.open("Tests/images/tiff_16bit_RGBa.tiff")
|
||||||
|
|
||||||
|
self.assertEqual(im.mode, "RGBA")
|
||||||
|
self.assertEqual(im.size, (100, 40))
|
||||||
|
self.assertEqual(im.tile, [('tiff_lzw', (0, 0, 100, 40), 50, 'RGBa;16B')])
|
||||||
|
im.load()
|
||||||
|
|
||||||
def test_gimp_tiff(self):
|
def test_gimp_tiff(self):
|
||||||
# Read TIFF JPEG images from GIMP [@PIL168]
|
# Read TIFF JPEG images from GIMP [@PIL168]
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user