Design
Generate parallax animations from images. Creates depth-based animation where different layers move at different speeds, creating a 3D effect.
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-parallax' \
-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-parallax' \
-F 'imageFile=/path/to/file.ext' \
-F 'direction=horizontal' \
-F 'intensity=10' \
-F 'frames=30' \
-F 'fps=15' \
-F 'depthMethod=combined' \
-F 'invertDepth=false' \
-F 'quality=80' \
-F 'loop=true' \
-F 'duration=2000'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-parallax| Name | Type | Required | Description |
|---|---|---|---|
| imageFile | fileupload required | Yes | Upload an image to create parallax animation |
| direction | select | No | Direction of parallax movement |
| intensity | range | No | How much pixels move based on depth (higher = more effect) |
| frames | range | No | Number of frames in animation (more = smoother but larger file) |
| fps | range | No | Animation speed in frames per second |
| depthMethod | select | No | Method for calculating depth from image |
| invertDepth | checkbox | No | Invert depth values (dark = close, light = far) |
| quality | range | No | GIF output quality (lower = smaller file, higher = better quality) |
| loop | checkbox | No | Animation will loop continuously |
| duration | number | No | Total animation duration (used with FPS to calculate frame count) |
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-parallax": {
"name": "image-parallax",
"description": "Generate parallax animations from images. Creates depth-based animation where different layers move at different speeds, creating a 3D effect.",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=image-parallax",
"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-parallax",
"arguments": {
"imageFile": "https://example.com/file.ext",
"direction": "horizontal",
"intensity": 10,
"frames": 30,
"fps": 15,
"depthMethod": "combined",
"invertDepth": false,
"quality": 80,
"loop": true,
"duration": 2000
}
}
}Questions or issues? Contact [email protected]