PyMuPDF
PyMuPDF copied to clipboard
Pixmap.pil() method
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
All contributors have signed the CLA ✍️ ✅
Posted by the CLA Assistant Lite bot.
I have read the CLA Document and I hereby sign the CLA
recheck