Pillow
Pillow is a Python Imaging Library (PIL) fork that adds image processing capabilities to Python. It supports extensive file formats and provides efficient internal representations. The current version is 12.1.1, released on February 11, 2026, with a regular release cadence.
Warnings
- breaking Dropped support for Python 3.9 in version 12.0.0.
- breaking Removed support for FreeType <= 2.9.0 in version 12.0.0.
- deprecated Deprecated getdata() in favor of get_flattened_data() in version 12.1.0.
- deprecated Deprecated Image._show in version 12.0.0.
- gotcha Using _getexif() may return None if the image lacks EXIF data.
Install
-
pip install pillow
Imports
- Image
from PIL import Image
- ImageDraw
from PIL import ImageDraw
- ImageFont
from PIL import ImageFont
Quickstart
from PIL import Image
# Open an image file
with Image.open('example.jpg') as img:
# Display image
img.show()
# Save image in a different format
img.save('example.png')