The Pillow library
Pillow is a currently maintained fork of the original Python Imaging Library (PIL). It offers support for opening, manipulating, and saving image files of various formats. Since it allows us to handle image files, draw shapes, control their transparency, and manipulate pixels, we will use it as our main tool in creating the reconstructed image.
The home page of this library can be found here: https://python-pillow.org/.
A typical installation of Pillow uses the pip command, as follows:
pip install Pillow
The Pillow library uses the PIL namespace. If you have the original PIL library already installed, you will have to uninstall it first. More information can be found in the documentation, which is located at https://pillow.readthedocs.io/en/stable/index.html ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access