Media
Compress WebP images with advanced settings for optimal file size reduction
Call this tool from your code in three languages.
# 1) Upload each file first → returns { filePath }
curl -X POST 'https://api.elysiatools.com/upload/webp-to-compressed-webp' \
-F 'file=@/path/to/imageFile.ext'
# 2) Call the tool with the returned filePath values
curl -X POST 'https://api.elysiatools.com/en/api/tools/webp-to-compressed-webp' \
-F 'imageFile=/path/to/file.ext' \
-F 'quality=70' \
-F 'effort=6' \
-F 'method=6' \
-F 'filterStrength=90' \
-F 'filterSharpness=3' \
-F 'filterType=1' \
-F 'alphaCompression=80' \
-F 'smartSubsample=true'Send a POST request with your inputs as JSON. File parameters require a separate upload first.
POST https://api.elysiatools.com/en/api/tools/webp-to-compressed-webp| Name | Type | Required | Description |
|---|---|---|---|
| imageFile | fileupload required | Yes | — |
| quality | range | No | Recommended range: 50-85 for good compression/quality balance |
| effort | range | No | Maximum effort (6) recommended for best compression |
| method | range | No | Maximum method (6) for optimal compression |
| filterStrength | range |
Add this tool to your Model Context Protocol server so AI agents can list and call it.
Add this block to your MCP client configuration:
{
"mcpServers": {
"elysiatools-webp-to-compressed-webp": {
"name": "webp-to-compressed-webp",
"description": "Compress WebP images with advanced settings for optimal file size reduction",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=webp-to-compressed-webp",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}After connecting to the SSE endpoint, list the exposed tools:
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list"
}Invoke the tool by its id, passing arguments built from its parameters:
{
"jsonrpc": "2.0",
"id": 2,
"method": "tools/call",
"params": {
"name": "webp-to-compressed-webp",
"arguments": {
"imageFile": "https://example.com/file.ext",
"quality": 70,
"effort": 6,
"method": 6,
"filterStrength": 90,
"filterSharpness": 3,
"filterType": 1,
"alphaCompression": 80,
"smartSubsample": true
}
}
}| Higher values reduce compression artifacts at the cost of some detail |
| filterSharpness | range | No | Higher values preserve edge sharpness during compression |
| filterType | number | No | 0: simple, 1: strong (recommended), 2: cross |
| alphaCompression | range | No | Compression quality for alpha/transparency channel when present |
| smartSubsample | checkbox | No | Optimize chroma channel processing for better compression |
File result
{
"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)"
}Questions or issues? Contact [email protected]