diff --git a/Tests/images/hopper_I.png b/Tests/images/hopper_I.png new file mode 100644 index 000000000..314ab09c7 Binary files /dev/null and b/Tests/images/hopper_I.png differ diff --git a/Tests/test_image_convert.py b/Tests/test_image_convert.py index 263608d2a..36f2c9d64 100644 --- a/Tests/test_image_convert.py +++ b/Tests/test_image_convert.py @@ -233,3 +233,11 @@ class TestImageConvert(PillowTestCase): # Assert # No change self.assert_image_equal(converted_im, im) + + def test_i_to_l(self): + im = Image.open("Tests/images/hopper_I.png").convert("L") + self.assert_image_similar(hopper("L"), im, 0.02) + + def test_i_to_rgb(self): + im = Image.open("Tests/images/hopper_I.png").convert("RGB") + self.assert_image_similar(hopper("L").convert("RGB"), im, 0.05)