POSTREADY / ONLINEFREE
Image Optimizer
Kompres ukuran file gambar secara optimal tanpa mengorbankan ketajaman dan detail piksel asli gambar.
ENDPOINT:/api/image/compress
Endpoint Overview
MethodPOST
Path/api/image/compress
AccessFree Tier / API Key
Total Usage920.400 requests
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| image_url | string | Yes | Tautan URL langsung gambar. |
| quality | number | No | Kualitas output gambar (1-100, default: 80). |
Response Example
application/json200 OK
{
"status": true,
"result": {
"original_size": "2.4 MB",
"optimized_size": "480 KB",
"saved_percent": "80%",
"optimized_url": "https://api.lcode.dev/storage/optimized-image.jpg"
}
}