Design
生成晃动立体图GIF,通过快速交替左右视角创建3D效果。无需3D眼镜!
用三种语言从你的代码中调用此工具。
# 1) Upload each file first → returns { filePath }
curl -X POST 'https://api.elysiatools.com/upload/image-wiggle-stereoscopy' \
-F 'file=@/path/to/imageFile.ext'
# 2) Call the tool with the returned filePath values
curl -X POST 'https://api.elysiatools.com/zh/api/tools/image-wiggle-stereoscopy' \
-F 'imageFile=/path/to/file.ext' \
-F 'offset=5' \
-F 'depthStrength=1' \
-F 'depthMethod=combined' \
-F 'invertDepth=false' \
-F 'wiggleSpeed=15' \
-F 'frames=12' \
-F 'loop=true' \
-F 'quality=85'以 JSON 形式 POST 提交输入参数。文件类型参数需先单独上传。
POST https://api.elysiatools.com/zh/api/tools/image-wiggle-stereoscopy| 参数名 | 类型 | 必填 | 说明 |
|---|---|---|---|
| imageFile | file需先上传 | 是 | 上传图片创建晃动立体效果 |
| offset | range | 否 | 左右视角之间的水平偏移量(像素,越高=3D效果越强) |
| depthStrength | range | 否 | 深度图对3D效果的影响程度 |
| depthMethod | select | 否 | 从图像计算深度的方法 |
| invertDepth | checkbox | 否 | 反转深度值(亮区域会显得更远) |
将此工具加入你的 Model Context Protocol 服务,让 AI 智能体可以列出并调用它。
将以下内容加入你的 MCP 客户端配置:
{
"mcpServers": {
"elysiatools-image-wiggle-stereoscopy": {
"name": "image-wiggle-stereoscopy",
"description": "生成晃动立体图GIF,通过快速交替左右视角创建3D效果。无需3D眼镜!",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=image-wiggle-stereoscopy",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}连接到 SSE 端点后,列出已开放的工具:
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list"
}通过工具 id 调用,参数由其参数表构建:
{
"jsonrpc": "2.0",
"id": 2,
"method": "tools/call",
"params": {
"name": "image-wiggle-stereoscopy",
"arguments": {
"imageFile": "https://example.com/file.ext",
"offset": 5,
"depthStrength": 1,
"depthMethod": "combined",
"invertDepth": false,
"wiggleSpeed": 15,
"frames": 12,
"loop": true,
"quality": 85
}
}
}| wiggleSpeed | range | 否 | 以每秒帧数为单位的晃动动画速度 |
| frames | range | 否 | 交替帧的数量(使用偶数效果最佳) |
| loop | checkbox | 否 | 动画将持续循环 |
| quality | range | 否 | GIF 输出质量(越低=文件越小,越高=质量越好) |
文件结果
{
"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)"
}有问题或反馈?请联系 [email protected]