Pillow

12.1.1 · active · verified Sat Mar 28

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

Install

Imports

Quickstart

Open an image file, display it, and save it in a different format.

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')

view raw JSON →