From 2014cf69b8d2e5c94433804383705d4b1e792fd9 Mon Sep 17 00:00:00 2001 From: Eric Soroos Date: Fri, 29 Sep 2017 10:39:43 +0000 Subject: [PATCH] 16bpc write test --- Tests/test_file_sgi.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Tests/test_file_sgi.py b/Tests/test_file_sgi.py index c7a4c1945..6beca56d8 100644 --- a/Tests/test_file_sgi.py +++ b/Tests/test_file_sgi.py @@ -71,6 +71,16 @@ class TestFileSgi(PillowTestCase): # Test 1 dimension for an L mode image roundtrip(Image.new('L', (10, 1))) + def test_write16(self): + test_file = "Tests/images/hopper16.rgb" + + im = Image.open(test_file) + out = self.tempfile('temp.sgi') + im.save(out, format='sgi', bpc=2) + + reloaded = Image.open(out) + self.assert_image_equal(im, reloaded) + def test_unsupported_mode(self): im = hopper('LA') out = self.tempfile('temp.sgi')