Optimize AVIF
Optimize AVIF images for better compression and performance while maintaining visual quality
API Documentation
Request Endpoint
Request Parameters
| Parameter Name | Type | Required | Description |
|---|---|---|---|
| imageFile | file (Upload required) | Yes | - |
| quality | range | No | Output quality (1-100, higher is better but larger) |
| effort | range | No | Compression effort (0=fast, 9=slowest but best compression) |
| chromaSubsampling | select | No | Chroma subsampling for color compression |
| lossless | checkbox | No | Use lossless compression for perfect quality |
| targetSize | text | No | Target file size for optimization (KB) |
| maxFileSize | text | No | Maximum allowed file size (KB) |
| denoiseLevel | range | No | Noise reduction level (0=none, 10=maximum) |
| sharpness | range | No | Image sharpening level (0=none, 10=maximum) |
| clearMetadata | checkbox | No | Remove all metadata for maximum compression |
| removeExif | checkbox | No | Remove EXIF metadata while keeping color profile |
| keepColorProfile | checkbox | No | Preserve original color profile (may increase file size) |
| preserveTransparency | checkbox | No | Keep alpha channel for transparency |
File type parameters need to be uploaded first via POST /upload/avif-to-optimized-avif 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-optimized-avif": {
"name": "avif-to-optimized-avif",
"description": "Optimize AVIF images for better compression and performance while maintaining visual quality",
"baseUrl": "https://elysiatools.com/mcp/sse?toolId=avif-to-optimized-avif",
"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]