Processing and Filters¶
Use the Image Toolkit for the day-to-day transformations most applications need.
Core processing endpoints¶
| Endpoint | Purpose |
|---|---|
POST /v1/image/resize |
Resize to target dimensions |
POST /v1/image/crop |
Crop by coordinates, smart center, or square |
POST /v1/image/rotate |
Rotate by any angle |
POST /v1/image/flip |
Flip horizontally or vertically |
POST /v1/image/compress |
Reduce image file size |
POST /v1/image/strip-exif |
Remove metadata for privacy |
POST /v1/image/trim |
Auto-trim borders |
POST /v1/image/pad |
Add padding or borders |
POST /v1/image/composite |
Overlay one image onto another |
POST /v1/image/dither |
Reduce to a limited colour palette |
POST /v1/image/remove-background |
Remove image backgrounds |
Filters and adjustments¶
POST /v1/image/filter/grayscalePOST /v1/image/filter/blurPOST /v1/image/filter/sharpenPOST /v1/image/filter/sepiaPOST /v1/image/adjust/brightnessPOST /v1/image/adjust/contrastPOST /v1/image/adjust/saturation
Example¶
from toolkitapi import Image
with Image(api_key="tk_...") as image:
result = image.remove_background(
url="https://toolkitapi.io/product.jpg",
format="png",
)
print(result["format"])