pillow

Python image processing library for creating and manipulating images

brewmacoslinux
Try with needOr install directly
Source

About

Friendly PIL fork (Python Imaging Library)

Commands

pythonpython3

Examples

Convert an image from one format to another$ python3 -c "from PIL import Image; img = Image.open('input.jpg'); img.save('output.png')"
Resize an image to specific dimensions$ python3 -c "from PIL import Image; img = Image.open('photo.jpg'); resized = img.resize((800, 600)); resized.save('photo_resized.jpg')"
Create a new image with a specific color and size$ python3 -c "from PIL import Image; img = Image.new('RGB', (400, 300), color='red'); img.save('red_square.png')"