分类

WebP压缩

使用高级设置压缩WebP图像,实现最优文件大小减少

Click to upload file or drag and drop file here

Maximum file size: 50MB Supported formats: image/webp

0 70 100

推荐范围: 50-85 以获得良好的压缩/质量平衡

0 6 6

推荐最大强度(6)以获得最佳压缩

0 6 6

最大方法(6)以获得最佳压缩

0 90 100

更高值减少压缩伪影,但会损失一些细节

0 3 7

更高值在压缩过程中保持边缘锐度

0: 简单, 1: 强烈(推荐), 2: 交叉

0 80 100

存在时的alpha/透明度通道压缩质量

优化色度通道处理以获得更好压缩

API 文档

请求端点

POST /zh/api/tools/webp-to-compressed-webp

请求参数

参数名 类型 必填 描述
imageFile file (需要先上传) -
quality range 推荐范围: 50-85 以获得良好的压缩/质量平衡
effort range 推荐最大强度(6)以获得最佳压缩
method range 最大方法(6)以获得最佳压缩
filterStrength range 更高值减少压缩伪影,但会损失一些细节
filterSharpness range 更高值在压缩过程中保持边缘锐度
filterType number 0: 简单, 1: 强烈(推荐), 2: 交叉
alphaCompression range 存在时的alpha/透明度通道压缩质量
smartSubsample checkbox 优化色度通道处理以获得更好压缩

文件类型参数需要先通过 POST /upload/webp-to-compressed-webp 上传获取 filePath,然后将 filePath 传递给对应的文件字段。

响应格式

{
  "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 文档

将此工具添加到您的 MCP 服务器配置中:

{
  "mcpServers": {
    "elysiatools-webp-to-compressed-webp": {
      "name": "webp-to-compressed-webp",
      "description": "使用高级设置压缩WebP图像,实现最优文件大小减少",
      "baseUrl": "https://elysiatools.com/mcp/sse?toolId=webp-to-compressed-webp",
      "command": "",
      "args": [],
      "env": {},
      "isActive": true,
      "type": "sse"
    }
  }
}

你可以串联多个工具,比如:`https://elysiatools.com/mcp/sse?toolId=png-to-webp,jpg-to-webp,gif-to-webp`,最多20个。

支持 URL 文件链接或 Base64 编码作为文件参数。

如果遇见问题,请联系我们:[email protected]