From aba195d35eb343f1142a8a4433c7305c28ea3921 Mon Sep 17 00:00:00 2001 From: wiredfool Date: Mon, 14 Apr 2014 06:11:39 -0700 Subject: [PATCH] Tests for #614 --- Tests/test_file_tiff.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Tests/test_file_tiff.py b/Tests/test_file_tiff.py index 9041b2046..804ae04e4 100644 --- a/Tests/test_file_tiff.py +++ b/Tests/test_file_tiff.py @@ -128,3 +128,14 @@ def test_12bit_rawmode(): print (im2.getpixel((0,2))) assert_image_equal(im, im2) + +def test_32bit_float(): + # Issue 614, specific 32 bit float format + path = 'Tests/images/10ct_32bit_128.tiff' + im = Image.open(path) + im.load() + + assert_equal(im.getpixel((0,0)), -0.4526388943195343) + assert_equal(im.getextrema(), (-3.140936851501465, 3.140684127807617)) + +