Skip to main content

funPIL

PyPI versionDownloads

🎈 A collection of PIL, Numpy and OpenCV functions to manipulate images

(Previously drawerFunctions, changed the name because yes)

Requirements: python3+, pillow, numpy, opencv

I've coded this because I'm lazy, and since I've found myself writing always the same sets of instructions, I've decided to wrap them up in this collection of little functions.
It's filled with common operations, from stroking PNGs to drawing Text, conversions between color spaces, or manipulating images.
Should be intuitive but don't forget to read the little docstrings I've provided.

An Image object is required for most common operations of image manipulation, it's a plain matrix of pixels.
An ImageDraw object is required for drawing text and polygons. Operating on an ImageDraw object will have effects on Image object.

I don't expect to update this very often, but if you find a bug let me know and don't esitate to make pull requests to extend the scripts

🔧 Installation

Open up your terminal and install the pypi package with:

pip install funPIL

This package requires pillow and numpy too.

pip install Pillow
pip install numpy

And you're good to go.

🎨 Usage

I'ts a very simple module to use. Just write this on top of your code:

import funPIL

from version 0.0.6 there is no more need to import it this way

from funPIL as df

Most of the functions are supposed to speed up your work with less code. It's only based on my experience and needs tho. Say you need a method to resize an image within a size but keeping the ratio, I got you.
You want to invert the colors of the whole canvas? Hold up chief.
If someone needs it, just ask it in the issue tab and I'll try to add it, hopefully my skills and enough google will bring it to you.

👷 Troubleshooting and version control

I'm still learning how to mantain a package correctly, while still updating github repo and pypi package. If you encounter an error don't esitate to hit the issue tab and report. I will try to fix it ASAP

💊 Is the name a joke?

Maybe it was intended

Metadata

Release files for funPIL 0.0.8

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for funPIL 0.0.8
File Size Uploaded
funPIL-0.0.8.tar.gz 13.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for funPIL 0.0.8
File Interpreter ABI Platform
funPIL-0.0.8-py3-none-any.whl Python 3 none any Details

Total release size: 26.2 kB

Release files / funPIL-0.0.8.tar.gz

Download URL funPIL-0.0.8.tar.gz
Size 13.6 kB
Tags Source
SHA-256 checksum
How to use checksums
9fa5800fde402e534c28c3b9fb3a90350cb1eee39d9a01b96d9a54bc354da56c
BLAKE2b-256 checksum
How to use checksums
315f0c1e5038e543617407f092279c67d5202d096794dc069911fd12b17edecf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.26.0 requests-toolbelt/0.9.1 urllib3/1.26.6 tqdm/4.54.1 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.0

Release files / funPIL-0.0.8-py3-none-any.whl

Download URL funPIL-0.0.8-py3-none-any.whl
Size 12.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5ea8a98aec2f0fa2524934e55d30032891b4ec71b31a25574319d40bce099b77
BLAKE2b-256 checksum
How to use checksums
375acccdf3920254f9aa1d0c003f0e7217af4eaf41723d9b06431a1e4131b7a9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.26.0 requests-toolbelt/0.9.1 urllib3/1.26.6 tqdm/4.54.1 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.0

Release history Release notifications | RSS feed

This release

0.0.8 This release

2 release files

0.0.7

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page