The Pillow library reads, writes and edits images.
It contains simple drawing tools and filters that can be applied to pixel based images. The most important feature of Pillow is that it can read and write almost all popular image formats.
Install it with:
pip install pillow
The following code shrinks every image in a folder to half its x/y size:
.. literalinclude:: half_size.py
.. literalinclude:: dice.py
.. literalinclude:: warhol.py
.. literalinclude:: snowflake.py
.. seealso::
`pillow.readthedocs.io <https://pillow.readthedocs.io>`__


