Package: python-pil Version: 2.5.1-1 Severity: important Tags: upstream patch
Hi, I intended to clone #758142 where this was reported to cinnamon, but failed to do so correctly, and that one is already fixed now. So here's a new report. This is an interactive version of how cinnamon was breaking (this is fixed now): >>> img = Image.open('/home/marga/.cinnamon/backgrounds/Dark_Ivy.jpg') >>> import imtools >>> img = imtools.round_image(img, {}, False, None, 3, 255) Traceback (most recent call last): File "<stdin>", line 1, in <module> File "imtools.py", line 170, in round_image mask = create_rounded_rectangle(image.size, cache, radius, opacity, pos) File "imtools.py", line 222, in create_rounded_rectangle paste(rounded_rectangle, element, (x, y)) File "imtools.py", line 862, in paste if source == mask: File "/usr/lib/python2.7/dist-packages/PIL/Image.py", line 576, in __eq__ a = (self.mode == other.mode) AttributeError: 'NoneType' object has no attribute 'mode' In pillow, this is fixed in this commit: https://github.com/python-pillow/Pillow/commit/1aee9bfdef1d73007d8e35ab883c8c936c1da602 I've verified that applying that change makes the example code and the unpatched cinnamon settings window work correctly. This was committed on July 5th, but the lastest released version (2.5.3, uploaded yesterday) still doesn't include that fix. Since we are so close to the freeze, I think it would be a good idea for the fix to be manually applied instead of waiting until they release it -- Regards, Marga -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org