Tested 445 examples run on Pillow 13.0.0 before publishing

Python Pillow,
done right.

Fixes for the Pillow errors you actually hit, guides with real output and measured numbers, and tools that run real Pillow on your own image, right in the browser.

Browse guides
$ python -m pip install pillow

Install guide for Windows, macOS, Linux, conda and Jupyter →

Independent, not the official Pillow site. Official docs: pillow.readthedocs.io

The Artemis II rocket on Launch Pad 39B at sunset Real Pillow output Move over the photo
from PIL import Image, ImageEnhance

img = Image.open("photo.jpg")
img = ImageEnhance.Color(img).enhance(1.8)
img = ImageEnhance.Contrast(img).enhance(1.25)
img.save("result.jpg")

Inside the lens: the output of the code above, made with Pillow 13.0.0. Photo: NASA/Sam Lott, public domain.

58pages, every one tested
445code examples run by the build
376runnable in your browser
3 OSLinux, Windows and macOS in CI
Start here

The problems everyone hits

Each one reproduced on a real Pillow install, explained, and fixed with code the build runs.

Why this site

Measured, not guessed

Every number and chart on the site is printed by real Pillow when the site is built.

Try it

Build a Pillow script, run it here

Tick the steps you need; the script updates as you go. All 1,042 combinations of these options are run against Pillow 13.0.0 when the site is built.

Steps
pipeline.py
from PIL import Image, ImageDraw, ImageEnhance, ImageOps

img = Image.open("phone.jpg")

# Fix phone-photo rotation (EXIF)
img = ImageOps.exif_transpose(img)

# Shrink to fit 800ร—800
img.thumbnail((800, 800), Image.LANCZOS)

# More contrast
img = ImageEnhance.Contrast(img).enhance(1.4)

# Add a caption
draw = ImageDraw.Draw(img)
draw.text((img.width // 2, img.height - 20), "Launch Pad 39B", fill="white", anchor="ms",
          font_size=max(16, img.width // 18), stroke_width=2, stroke_fill="black")

img.save("result.jpg", quality=85, optimize=True)
print("saved result.jpg:", img.size, img.mode)
First run downloads Python and Pillow (about 12 MB). Nothing is uploaded.
Tools

Real Pillow, on your own image

Preview instantly, then run the generated script with real Pillow in your browser and download the result.

All tools
Everything

Every guide, fix and reference page

Grouped by what you are trying to do. ■ guide ■ error fix ■ reference

How we test

If it is on the page, it ran.

  1. Reproduce the real problemError pages show tracebacks captured from failing code, not retyped from memory.
  2. Run every exampleEach example runs on Pillow 13.0.0 and Python 3.13 in a clean folder; output and images are written into the page.
  3. Re-run everywhereCI repeats every example on Linux, Windows and macOS and against new Pillow releases; differences are shown under each example.
  4. Chart only what was measuredEvery chart is drawn from the output printed beside it.

Read the full process · corrections to hello@pillowpython.com

PlatformSame resultDiffers*Runner
Linux · Pillow 12.3.0321 ✓0 ⚠Linux 6.17.0-1022-azure
Windows · Pillow 12.3.0311 ✓2 ⚠Windows 2025Server
macOS · Pillow 12.3.0314 ✓1 ⚠Darwin 25.6.0

*Expected differences, explained on the page, such as font lookup on Windows. Updated by CI on every run.

FAQ

Questions people ask

Is this the official Pillow website?

No. Pillow Python is an independent site. The official documentation is at pillow.readthedocs.io, and the project lives on GitHub. We are not affiliated with it.

What is the difference between PIL and Pillow?

PIL, the Python Imaging Library, stopped at version 1.1.7 in 2009 and never supported Python 3. Pillow is its maintained fork. You install pillow and import PIL: from PIL import Image.

How are the examples tested?

Every example is run by a script against a real Pillow installation before the page is published, and the output you see is what it printed. A scheduled job re-runs them on Linux, Windows and macOS and against each new Pillow release. More on how we test.

Which Pillow version do I have?

Run python -c "import PIL; print(PIL.__version__)" with the Python that runs your code. The install guide shows how to upgrade, and which Pillow supports which Python.

Do the Run buttons upload my code or images?

No. They run Pillow inside your browser with Pyodide (Python compiled to WebAssembly). Nothing is sent to a server; the first run downloads about 12 MB of Python and Pillow from a public CDN.

Stuck on an error?

Paste the last line of the traceback. If we have not covered it yet, email it to hello@pillowpython.com and we will reproduce it.