Passing open PIL image to Image() is creating blank images in output
Created originally on Bitbucket by claudep (Claude Paroz)
The Image() constructor supports open PIL images as input, which is nice in some cases. However, when producing the final document, the _data()
method is missing a seek(0)
after saving the image in the BytesIO
buffer. This results in missing image data in the final document.