PyMuPDF icon indicating copy to clipboard operation
PyMuPDF copied to clipboard

Pixmap.pil() method

Open vadim0x60 opened this issue 1 year ago • 3 comments

Pixmap.pil_save() and Pixmap.pil_tobytes() methods convert a Pixmap to a PIL.Image object internally, but don't expose this object to the user of the library. Having access to the Pillow object directly is very useful to apply your own image processing to the pixmap or interface with another library that requires Pillow objects as input. I added a method, Pixmap.pil() to do exactly that, simply convert a Pixmap to a PIL.Image

vadim0x60 avatar Aug 29 '24 11:08 vadim0x60

All contributors have signed the CLA ✍️ ✅
Posted by the CLA Assistant Lite bot.

github-actions[bot] avatar Aug 29 '24 11:08 github-actions[bot]

I have read the CLA Document and I hereby sign the CLA

vadim0x60 avatar Aug 29 '24 12:08 vadim0x60

recheck

vadim0x60 avatar Sep 13 '24 17:09 vadim0x60