Pillow

Image loading, resizing and format conversion.

Pillow is taught here in 3 lessons, running from Opening, inspecting and saving images through to Drawing and converting formats. Each lesson takes one topic, shows the working code, and links onward to the next, so the course can be read straight through in order.

TrackPython & Data Science
Lessons3
LevelBeginner
Reading timeabout 39 minutes
PrerequisitesHelpful, but not required: SciPy

Lessons

  1. Opening, inspecting and saving imagesWhat Image.open actually does, how to read a file's real properties, and how to save in a format that supports the modes you have.
  2. Resizing, cropping and rotatingThe geometry operations, which resampling filter to pick, and why rotate and thumbnail have surprising defaults.
  3. Drawing and converting formatsAnnotating images with ImageDraw, compositing with alpha, and converting safely between pixel modes in a batch.

More in Python & Data Science

Python 3 NumPy pandas Matplotlib Jupyter Notebook Flask FastAPI Django SciPy Python 2.x R Julia

FAQ

How long does the Pillow course take?
It has 3 lessons, about 39 minutes of reading. Expect roughly twice that if you type out and run every example.
Do I need prior experience for Pillow?
Not strictly. It helps to have read SciPy first, because some lessons build on it, but every lesson explains its own assumptions.
What should I read after Pillow?
Continue with Python 2.x (3 lessons), the next course in Python & Data Science.

Last refreshed 2026-09-18.