Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9c121d9

Browse files
author
Chris Glass
committed
Merge branch 'stable' of https://github.com/davidszotten/xhtml2pdf into davidszotten
Conflicts: sx/pisa3/pisa_context.py sx/pisa3/pisa_reportlab.py sx/w3c/css.py
2 parents 790d05d + ce3ea7b commit 9c121d9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

sx/pisa3/pisa_reportlab.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,8 @@ def getRGBData(self):
313313
im = self._image
314314
mode = self.mode = im.mode
315315
if mode == 'RGBA':
316-
if PILImage.VERSION.startswith('1.1.7'): im.load()
316+
if Image.VERSION.startswith('1.1.7'):
317+
im.load()
317318
self._dataA = PmlImageReader(im.split()[3])
318319
im = im.convert('RGB')
319320
self.mode = 'RGB'

0 commit comments

Comments
 (0)