Image Format Converter
High-speed image format converter supporting PNG, JPEG, WEBP, AVIF, GIF, BMP, TIFF, and ICO with precision quality control and transparency flattening.
Parameters
Convert image formats instantly.
Ready for Execution
Select target format on the left and click Convert to process.
Converting Image...
Processing target format & compression...
{}
Execution Failed
Failed to connect to worker.
Invoke this microservice programmatically from your backend application. Authenticate by passing your Lumoz API key in the Authorization: Bearer YOUR_API_KEY header.
curl -X POST https://lumozai.com/api/v1/services/run \
-H "Authorization: Bearer YOUR_LUMOZ_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"service_id": "image-converter",
"url": "https://lumozai.com",
"w": 1920,
"h": 1080
}'
import requests
url = "https://lumozai.com/api/v1/services/run"
headers = {
"Authorization": "Bearer YOUR_LUMOZ_API_KEY",
"Content-Type": "application/json"
}
payload = {
"service_id": "image-converter",
"url": "https://lumozai.com",
"w": 1920,
"h": 1080
}
response = requests.post(url, json=payload, headers=headers)
data = response.json()
print("Output:", data.get("output"))
print("Execution time:", data.get("execution_time"))
const response = await fetch("https://lumozai.com/api/v1/services/run", {
method: "POST",
headers: {
"Authorization": "Bearer YOUR_LUMOZ_API_KEY",
"Content-Type": "application/json"
},
body: JSON.stringify({
service_id: "image-converter",
url: "https://lumozai.com",
w: 1920,
h: 1080
})
});
const data = await response.json();
console.log("Output URL:", data.output);
Parameters Schema
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
image |
string | Yes | - |
Source image URL, uploaded file, or base64 data URI |
target_format |
string | Yes | "webp" |
Target output format: webp, jpeg, png, avif, gif, bmp, tiff, or ico |
quality |
integer | No | 90 |
Encoding compression quality (1 to 100) |
background_color |
string | No | "#ffffff" |
Hex background color for flattening transparent pixels (e.g. #ffffff) |
max_width |
integer | No | - |
Optional maximum width constraint in pixels |
max_height |
integer | No | - |
Optional maximum height constraint in pixels |