From 90c4337a2303078a91ad12db40d428a9c024cf60 Mon Sep 17 00:00:00 2001 From: Andrew Murray Date: Sat, 19 Sep 2015 10:12:00 +1000 Subject: [PATCH] Added test image --- Tests/images/16bit.s.tif | Bin 0 -> 334 bytes Tests/test_file_tiff.py | 5 +++++ 2 files changed, 5 insertions(+) create mode 100644 Tests/images/16bit.s.tif diff --git a/Tests/images/16bit.s.tif b/Tests/images/16bit.s.tif new file mode 100644 index 0000000000000000000000000000000000000000..f36e68d610b3787efaa0778b4f7d07538a7094f6 GIT binary patch literal 334 zcmebD)MB{6z`*do9!Ow-p(o14z`)4NzzFmSkj21=#AbrB1%TqrP&P;%8xmWPkp--m a11K(vBrXmWKLHe%K@ty!vYCM5AOHZ4HWFz7 literal 0 HcmV?d00001 diff --git a/Tests/test_file_tiff.py b/Tests/test_file_tiff.py index cf00551ba..79ba17ba6 100644 --- a/Tests/test_file_tiff.py +++ b/Tests/test_file_tiff.py @@ -188,6 +188,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? """