分类

图像合成

将多张图像精确合成在一起,可控制位置、透明度和混合模式

Click to upload file or drag and drop file here

Maximum file size: 20MB Supported formats: image/jpeg, image/png, image/webp, image/gif, image/bmp, image/tiff

其他图像将合成到的基础图像

Click to upload files or drag and drop files here

Maximum file size: 20MB Maximum files: 8
Supported formats: image/jpeg, image/png, image/webp, image/gif, image/bmp, image/tiff

选择1-8张图像合成到基础图像上

如何排列合成的图像

合成图像的混合模式

最终画布的宽度(留空使用基础图像宽度)

最终画布的高度(留空使用基础图像高度)

透明区域的背景颜色(默认:透明)

合成图像的输出格式

有损格式的输出质量(JPEG、WebP、AVIF)

API 文档

请求端点

POST /zh/api/tools/image-composite

请求参数

参数名 类型 必填 描述
baseImage file (需要先上传) 其他图像将合成到的基础图像
compositeImages file (需要先上传) 选择1-8张图像合成到基础图像上
layoutMode select 如何排列合成的图像
blendMode select 合成图像的混合模式
canvasWidth number 最终画布的宽度(留空使用基础图像宽度)
canvasHeight number 最终画布的高度(留空使用基础图像高度)
backgroundColor color 透明区域的背景颜色(默认:透明)
outputFormat select 合成图像的输出格式
quality number 有损格式的输出质量(JPEG、WebP、AVIF)

文件类型参数需要先通过 POST /upload/image-composite 上传获取 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-image-composite": {
      "name": "image-composite",
      "description": "将多张图像精确合成在一起,可控制位置、透明度和混合模式",
      "baseUrl": "https://elysiatools.com/mcp/sse?toolId=image-composite",
      "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]