diff --git a/Tests/images/16bit.s.tif b/Tests/images/16bit.s.tif new file mode 100644 index 000000000..f36e68d61 Binary files /dev/null and b/Tests/images/16bit.s.tif differ diff --git a/Tests/test_file_tiff.py b/Tests/test_file_tiff.py index 2a9132d48..4c6ae4af3 100644 --- a/Tests/test_file_tiff.py +++ b/Tests/test_file_tiff.py @@ -198,6 +198,11 @@ class TestFileTiff(PillowTestCase): self.assertEqual(b[0], b'\x01') self.assertEqual(b[1], b'\xe0') + def test_16bit_s(self): + im = Image.open('Tests/images/16bit.s.tif') + im.load() + self.assertEqual(im.mode, 'I;16S') + def test_12bit_rawmode(self): """ Are we generating the same interpretation of the image as Imagemagick is? """