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.10 to 3.14
You can install the library via PIP. Run the following command:
pip install iloveimgFor other install options (source, pre-release), see INSTALL.md.
- Get your API keys from https://developer.iloveimg.com
- Run a task:
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/ - Installation:
INSTALL.md- All install options - Development:
DEVELOPMENT.md- Contributing & setup - Docker & environment setup:
.docker/
For full API docs, visit developer.iloveimg.com