Img2Link Python SDK (PyPI)
The official Python wrapper for the Img2Link processing engine. Perfect for automation scripts, Flask/Django backends, and data pipelines.
Installation
pip install img2link-sdkExample: Cloud Conversion
from img2link import Img2Link
fc = Img2Link(api_key="your_api_key")
# Upload and convert to WebP
result = fc.upload(
"dataset/photo_001.jpg",
format="webp",
quality=80
)
print(f"File processed: {result.url}")API Reference
| Method | Description |
|---|---|
| upload() | Uploads a local file to the secure Img2Link cloud storage. |
| get_metadata() | Retrieve resolution, size, and EXIF summary of a specific file ID. |
| batch_process() | Parallel processing for large-scale image transformations. |