Convert AVIF to WebP
Convert AVIF images to WebP format with advanced compression options and web optimization
API Documentation
Request Endpoint
Request Parameters
| Parameter Name | Type | Required | Description |
|---|---|---|---|
| imageFile | file (Upload required) | Yes | - |
| quality | range | No | WebP quality level (0-100). Higher values = better quality, larger file size. |
| lossless | checkbox | No | Compress without any quality loss (overrides quality setting) |
| nearLossless | checkbox | No | Almost perfect quality with good compression (min quality: 85) |
| effort | range | No | Higher values = better compression but slower processing |
| smartSubsample | checkbox | No | Enable smart chroma subsampling for potentially better quality |
| alphaQuality | range | No | Quality setting for alpha/transparency channel when present |
| keepMetadata | checkbox | No | Preserve original image metadata (EXIF, IPTC, XMP) |
| resizeMethod | select | No | - |
| targetSize | text | No | Target dimensions (width:height or just width). Height calculated if omitted. |
File type parameters need to be uploaded first via POST /upload/avif-to-webp to get filePath, then pass filePath to the corresponding file field.
Response Format
{
"filePath": "/public/processing/randomid.ext",
"fileName": "output.ext",
"contentType": "application/octet-stream",
"size": 1024,
"metadata": {
"key": "value"
},
"error": "Error message (optional)",
"message": "Notification message (optional)"
}
AI MCP Documentation
Add this tool to your MCP server configuration:
{
"mcpServers": {
"elysiatools-avif-to-webp": {
"name": "avif-to-webp",
"description": "Convert AVIF images to WebP format with advanced compression options and web optimization",
"baseUrl": "https://elysiatools.com/mcp/sse?toolId=avif-to-webp",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}
You can chain multiple tools, e.g.: `https://elysiatools.com/mcp/sse?toolId=png-to-webp,jpg-to-webp,gif-to-webp`, max 20 tools.
Supports URL file links or Base64 encoding for file parameters.
If you encounter any issues, please contact us at [email protected]