Oreiller: A Python Pillow Alternative


computer vision

Really, oreiller is the french word for a pillow.

I always heard about the PIL fork, Pillow but never used it. When I finally used it, I found it to be tedious sometimes. Like including emojis in text and the general programming. I finally got around to create a small library WIP called oreiller.

https://pypi.org/project/oreiller/

Code demo:

from oreiller import Oreiller as orey

w, h = 220, 190

img = orey.new("RGB", (w, h)) 
orey.fill(None)
orey.oline(40, 40, w-10, h-10, width=0) # use .line for normal
orey.otext(40, 60, "👋 Good to see ya")
img.show() 

orey.cleanup()

Written by

Abdur-Rahmaan Janhangeer

Chef

Python author of 7+ years having worked for Python companies around the world

Suggested Posts

How to Annotate Each Point in a Matplotlib Scatter Plot

One of the most frequent questions when working with Matplotlib is: “How do I label each point in my...

Read article

Beyond the Basics: Unconventional Uses of Seaborn Heatmaps for Data Visualization

Heatmaps can bring your data to life. Versatile and eye-catching. There are many situations where th...

Read article

Plotting Hotspots in Mauritius with Python and Folium

geo plotting has never been so easy. thanks dhrumil patel! download the data file here #Import Libr...

Read article
Free Flask Course