A Python library for iLoveIMG API to automate image processing tasks such as compressing, resizing, converting, cropping, watermarking, removing backgrounds, and more.
You can sign up for an iLoveIMG account at https://developer.iloveimg.com
Develop and automate image processing tasks like Compress, Convert, Crop, Resize, Rotate, Watermark, Remove Background, and Upscale. Each task supports several settings to get your desired results.
- Python 3.9 to 3.12
Install from PyPI:
pip install iloveimgOr install the latest version from source:
pip install -U git+https://github.com/iloveimg/iloveimg-python.git@main#egg=iloveimgSimple usage looks like:
from iloveimg import CompressTask
task = CompressTask(public_key="your_public_key", secret_key="your_secret_key")
task.add_file("input.jpg")
task.execute()
task.download("output_folder")- Core library:
iloveimg/ - Example scripts:
samples/ - Unit & integration tests:
tests/ - Docker & environment setup:
.docker/
For detailed API documentation, visit the official iLoveIMG API docs.