From 4f9118bdbd83b32723be1a8d364806686f1d3108 Mon Sep 17 00:00:00 2001 From: Andrew Murray Date: Fri, 20 Mar 2020 17:49:36 +1100 Subject: [PATCH] Added comment [ci skip] --- src/PIL/Jpeg2KImagePlugin.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/PIL/Jpeg2KImagePlugin.py b/src/PIL/Jpeg2KImagePlugin.py index 19499959f..2dab7808f 100644 --- a/src/PIL/Jpeg2KImagePlugin.py +++ b/src/PIL/Jpeg2KImagePlugin.py @@ -206,6 +206,9 @@ class Jpeg2KImageFile(ImageFile.ImageFile): @property def reduce(self): + # https://github.com/python-pillow/Pillow/issues/4343 found that the + # new Image 'reduce' method was shadowed by this plugin's 'reduce' + # property. This attempts to allow for both scenarios return self._reduce or super().reduce @reduce.setter