diff --git a/sx/pisa3/pisa_reportlab.py b/sx/pisa3/pisa_reportlab.py index a24ff883..00d6fa1f 100644 --- a/sx/pisa3/pisa_reportlab.py +++ b/sx/pisa3/pisa_reportlab.py @@ -320,9 +320,10 @@ def getRGBData(self): else: im = self._image mode = self.mode = im.mode - if mode == 'RGBA': - self._dataA = PmlImageReader(im.split()[3]) - im = im.convert('RGB') + if mode == 'RGBA': + if Image.VERSION.startswith('1.1.7'): im.load() + self._dataA = ImageReader(im.split()[3]) + im = im.convert('RGB') self.mode = 'RGB' elif mode not in ('L', 'RGB', 'CMYK'): im = im.convert('RGB') @@ -906,4 +907,4 @@ def draw(self): canvas.rotate(90) canvas.scale(self.scale, self.scale) hand(canvas, debug=0, fill=1) -""" \ No newline at end of file +"""