Media
Convierte imágenes WebP a formato WebP optimizado con configuraciones de compresión avanzadas
Llama a esta herramienta desde tu código en tres lenguajes.
# 1) Upload each file first → returns { filePath }
curl -X POST 'https://api.elysiatools.com/upload/webp-to-optimized-webp' \
-F 'file=@/path/to/imageFile.ext'
# 2) Call the tool with the returned filePath values
curl -X POST 'https://api.elysiatools.com/es/api/tools/webp-to-optimized-webp' \
-F 'imageFile=/path/to/file.ext' \
-F 'quality=85' \
-F 'effort=6' \
-F 'method=6' \
-F 'filterStrength=80' \
-F 'filterSharpness=2' \
-F 'filterType=1' \
-F 'smartSubsample=true' \
-F 'autoFilter=true' \
-F 'nearLossless=false'Envía una petición POST con tus entradas en JSON. Los parámetros de tipo archivo requieren una subida previa.
POST https://api.elysiatools.com/es/api/tools/webp-to-optimized-webp| Nombre | Tipo | Obligatorio | Descripción |
|---|---|---|---|
| imageFile | filesubida requerida | Sí | — |
| quality | range | No | Higher quality = larger file size. 90+ enables near-lossless |
| effort | range | No | Maximum effort for best compression ratio |
| method | range | No | Maximum method for best compression quality |
| filterStrength | range | No | Strength of the deblocking filter |
| filterSharpness | range | No | Filter sharpness for preserving edges |
| filterType | number | No | 0: simple, 1: strong, 2: cross |
| smartSubsample | checkbox | No | Optimize chroma channel processing |
| autoFilter | checkbox | No | Let the encoder choose optimal filter settings |
| nearLossless | checkbox | No | Very high quality with minimal compression |
Resultado de archivo
{
"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)"
}Añade esta herramienta a tu servidor Model Context Protocol para que los agentes de IA puedan listarla y llamarla.
Añade este bloque a la configuración de tu cliente MCP:
{
"mcpServers": {
"elysiatools-webp-to-optimized-webp": {
"name": "webp-to-optimized-webp",
"description": "Convierte imágenes WebP a formato WebP optimizado con configuraciones de compresión avanzadas",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=webp-to-optimized-webp",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}Tras conectar al endpoint SSE, lista las herramientas expuestas:
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list"
}Invoca la herramienta por su id; los argumentos se construyen a partir de sus parámetros:
{
"jsonrpc": "2.0",
"id": 2,
"method": "tools/call",
"params": {
"name": "webp-to-optimized-webp",
"arguments": {
"imageFile": "https://example.com/file.ext",
"quality": 85,
"effort": 6,
"method": 6,
"filterStrength": 80,
"filterSharpness": 2,
"filterType": 1,
"smartSubsample": true,
"autoFilter": true,
"nearLossless": false
}
}
}¿Dudas o problemas? Contacta con [email protected]