Pillow
Image loading, resizing and format conversion.
💡
This course has 3 lessons. Start with the first one and use the next / previous links at the bottom of each lesson — the sidebar keeps the whole course in order.
Lessons
- 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.
- Resizing, cropping and rotatingThe geometry operations, which resampling filter to pick, and why rotate and thumbnail have surprising defaults.
- 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
Last refreshed 2026-09-17.