The Python Papers

The Python Papers

How to Resize a Photo with Python

Mike Driscoll's avatar
Mike Driscoll
May 27, 2026
∙ Paid

Sometimes you will find yourself wanting to resize a photo. I usually do this for photos I plan to email or post on a website, since some of my images can be quite large. Normal people use an image editor. I usually do as well, but for fun, I thought I would look into how to do it in Python.

The quickest way to do this is to use the Pillow package, which…

User's avatar

Continue reading this post for free, courtesy of Mike Driscoll.

Or purchase a paid subscription.
© 2026 Mike Driscoll · Privacy ∙ Terms ∙ Collection notice
Start your SubstackGet the app
Substack is the home for great culture