Geek Culture
Published in

Geek Culture

Deforming images in Python

Using the Pillow deform function

Photo by Dan DeAlmeida on Unsplash

You can use the Pillow ImageOps deform function to apply general deformations to an image. Typical deformations include:

  • Barrel distortion. This happens when an image appears more magnified at its centre than its edges. It is sometimes called a fisheye effect.
  • Pincushion distortion, which is the opposite of barrel distortion.




A new tech publication by Start it up (

Recommended from Medium

Lessons learnt from Organisation level migrations, revamps & massive changes!

Golang unit testing out of the bounds of “A tour of Go”

Algorithm: How to Bubble Sort Integer/String Array in Python

7 Alternatives to the <div> HTML Tag

Automate Deploying NodeJS API Docker Image on AWS App Runner through CloudFormation

Python Installation — Windows

Mastering Decorators in Python 3

6 Key Questions to Ask About Security When Hiring an IT Outsourcing Provider

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Martin McBride

Martin McBride

Software developer. Java, Python, C++ etc. I write for and maintain the generativepy library.

More from Medium

Python ternary operator

Positional Only Arguments In Python

Learn Python - Classes

HARMAN Python Training Day2