Skip to content

Latest commit

 

History

History

README.rst

How to shrink an image?

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

How to create an image from scratch?

five.png
.. literalinclude:: dice.py

How to mix color channels?

pylogo_warhol.png
.. literalinclude:: warhol.py

How to create turtle graphics?

snowflake3.png
.. literalinclude:: snowflake.py


.. seealso::

    `pillow.readthedocs.io <https://pillow.readthedocs.io>`__