Deforming images in Python
Using the Pillow deform function
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.