Skip to content

Instantly share code, notes, and snippets.

View koljapluemer's full-sized avatar
🏠
Working from home

Kolja Sam koljapluemer

🏠
Working from home
View GitHub Profile
@namieluss
namieluss / python-pillow-image-add-border.py
Created March 16, 2020 05:36
Add Borders to Images using Python Pillow
from PIL import Image, ImageOps
# open image
img = Image.open("test_image.jpg")
# border color
color = "green"
# top, right, bottom, left
border = (20, 10, 20, 10)