Skip to content

ilovepdf/iloveimg-python

Repository files navigation

iLoveIMG API - Python Library

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.


Requirements

  • Python 3.9 to 3.12

Installation

Install from PyPI:

pip install iloveimg

Or install the latest version from source:

pip install -U git+https://github.com/iloveimg/iloveimg-python.git@main#egg=iloveimg

Getting Started

Simple 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")

Project Structure & Documentation

For detailed API documentation, visit the official iLoveIMG API docs.


About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors