The Python Papers

The Python Papers

Changing Image Contrast with Python and Pillow

Mike Driscoll's avatar
Mike Driscoll
Jul 07, 2026
∙ Paid

In the last article, you learned how to adjust an image’s color balance. Today you will learn how to change the contrast in an image.

Contrast is defined as the difference between dark and light in an image. A high-contrast image will have bright highlights and nice, dark shadows. Colors are usually bold and display texture. A low-contrast image, on the …

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