Ez PIL
An easy-to-use extension for PIL to edit and modify images.
Installation
Python 3.12 or higher is required.
pip install ez-pil
Examples
Example for Discord Bot integration. For further information, see the Documentation.
import discord
import ezcord
from ez_pil import Editor, load_image_async
bot = ezcord.Bot()
@bot.slash_command()
async def circle(ctx):
# Load the image using `load_image_async` method
image = await load_image_async(ctx.author.display_avatar.url)
# Initialize the editor and pass image as a parameter
editor = Editor(image).circle_image()
# Creating File object from image_bytes from editor
file = discord.File(fp=editor.image_bytes, filename='circle.png')
await ctx.respond(file=file)
bot.run("TOKEN")
Contributing
If you want to contribute, follow the steps below:
- Fork the repository and clone it to your local machine.
- Install the dependencies using
pip install -r requirements-dev.txt. - Run
pre-commit installto set up pre-commit hooks. - Make your changes and create a pull request.
You can run tests locally:
pytest
pre-commit run -a
You can also run the documentation locally:
cd docs
make html
Now you can open _build/html/index.html in your browser.
Credits
This repository is a fork of easy-pil, because the original repository is no longer maintained 👻
Metadata
Release files for ez-pil 0.5.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| ez_pil-0.5.0.tar.gz | 896.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ez_pil-0.5.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 1.8 MB
Release files / ez_pil-0.5.0.tar.gz
| Download URL | ez_pil-0.5.0.tar.gz |
|---|---|
| Size | 896.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
68b8a6a09d543ad9537c30afc8067be66259853e3a82bbdb30b51c38eed6abf9
|
|
BLAKE2b-256 checksum How to use checksums |
3858a52c6d0f398252cdfc20bb8d26549926e2df371abf7070045073aafe510c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Apr 30, 2026.
Transparency logRelease files / ez_pil-0.5.0-py3-none-any.whl
| Download URL | ez_pil-0.5.0-py3-none-any.whl |
|---|---|
| Size | 896.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5c98a79455d65d0d7e6aaae69bd5dbf2650879129ed732dcf31faf261d16252b
|
|
BLAKE2b-256 checksum How to use checksums |
96726fed4b46d8858a0aa836a8d1afebfe2acbdf8142344e1545d99c11d5bdcd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Apr 30, 2026.
Transparency log