From c0ab8b0ab198dadce71246727328c193b229fe37 Mon Sep 17 00:00:00 2001 From: John Cupitt Date: Fri, 28 Oct 2016 16:49:02 +0100 Subject: [PATCH] fix a warning from the test suite we were trying to save greyscale PNGs with an RGB profile --- test/test_foreign.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/test_foreign.py b/test/test_foreign.py index 61de9ce0..bbbe2104 100755 --- a/test/test_foreign.py +++ b/test/test_foreign.py @@ -58,9 +58,13 @@ class TestForeign(unittest.TestCase): self.colour = Vips.Image.jpegload(self.jpeg_file) self.mono = self.colour.extract_band(1) + # we remove the ICC profile: the RGB one will no longer be appropriate + self.mono.remove("icc-profile-data") self.rad = self.colour.float2rad() + self.rad.remove("icc-profile-data") self.cmyk = self.colour.bandjoin(self.mono) self.cmyk = self.cmyk.copy(interpretation = Vips.Interpretation.CMYK) + self.cmyk.remove("icc-profile-data") im = Vips.Image.new_from_file(self.gif_file) self.onebit = im > 128