← All libraries

Pillow

Python
↗ Official site

Images & file upload

Python library for image processing — resize, crop, filter, convert.

What it does

Pillow is the standard Python library for working with images. Open an image, resize it, crop it, convert between formats (PNG, JPEG, WebP), apply filters — all in Python code.

When to use it

Use this when you need to process images server-side in Python — resizing, format conversion, or preprocessing for AI.

Real example

You're building a Python script that takes user-uploaded photos and generates square thumbnails for a social feed. Prompt: 'Use Pillow to open each image, crop it to a square using ImageOps.fit() with a (400, 400) size, convert to RGB, and save as a JPEG with quality=85 to /thumbnails/.'

Good to know

The go-to for any server-side image processing in Python. Often used in AI/ML pipelines for preprocessing images.

Alternatives

OpenCV Wand

Install

$ pip install Pillow

Use cases

image processingimage resizeimage conversionPythonAI preprocessing

Language

Python

Category

Images & file upload

More in Images & file upload

Other tools in the same category