Design
Generate red-cyan 3D anaglyph images from regular photos. Creates stereoscopic 3D images viewable with red-cyan 3D glasses.
Call this tool from your code in three languages.
# 1) Upload each file first → returns { filePath }
curl -X POST 'https://api.elysiatools.com/upload/image-anaglyph' \
-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/image-anaglyph' \
-F 'imageFile=/path/to/file.ext' \
-F 'mode=red-cyan' \
-F 'offset=8' \
-F 'depthStrength=1' \
-F 'depthMethod=combined' \
-F 'invertDepth=false' \
-F 'preserveBrightness=true' \
-F 'format=png' \
-F 'quality=90'Send a POST request with your inputs as JSON. File parameters require a separate upload first.
POST https://api.elysiatools.com/en/api/tools/image-anaglyph| Name | Type | Required | Description |
|---|---|---|---|
| imageFile | fileupload required | Yes | Upload an image to convert to 3D anaglyph |
| mode | select | No | Type of 3D glasses to use |
| offset | range | No | Horizontal offset between left and right views (higher = more 3D effect) |
| depthStrength | range | No | How much depth affects the 3D effect |
| depthMethod | select |
| Method for calculating depth from image |
| invertDepth | checkbox | No | Invert depth values (bright areas will appear farther) |
| preserveBrightness | checkbox | No | Keep the overall image brightness similar to original |
| format | select | No | Output image format |
| quality | number | No | Quality setting for lossy formats (JPEG, WebP) |
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)"
}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-image-anaglyph": {
"name": "image-anaglyph",
"description": "Generate red-cyan 3D anaglyph images from regular photos. Creates stereoscopic 3D images viewable with red-cyan 3D glasses.",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=image-anaglyph",
"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": "image-anaglyph",
"arguments": {
"imageFile": "https://example.com/file.ext",
"mode": "red-cyan",
"offset": 8,
"depthStrength": 1,
"depthMethod": "combined",
"invertDepth": false,
"preserveBrightness": true,
"format": "png",
"quality": 90
}
}
}Questions or issues? Contact [email protected]