Media
Extend image canvas with blurred background, perfect for portraits, product photos, and professional presentations
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-extend-blur-background' \
-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-extend-blur-background' \
-F 'imageFile=/path/to/file.ext' \
-F 'uniformPadding=100' \
-F 'topPadding=0' \
-F 'rightPadding=0' \
-F 'bottomPadding=0' \
-F 'leftPadding=0' \
-F 'blurStrength=20' \
-F 'backgroundOpacity=1' \
-F 'backgroundColor=Select overlay color (optional)...' \
-F 'format=original' \
-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-extend-blur-background| Name | Type | Required | Description |
|---|---|---|---|
| imageFile | fileupload required | Yes | Upload any image file (JPEG, PNG, WebP, TIFF, GIF, BMP) |
| uniformPadding | number | No | Extension to add on all sides |
| topPadding | number | No | Extension to add to the top edge |
| rightPadding | number | No | Extension to add to the right edge |
| bottomPadding | number | No | Extension to add to the bottom edge |
| leftPadding | number | No | Extension to add to the left edge |
| blurStrength | range | No | Strength of the background blur effect (1-100) |
| backgroundOpacity | range | No | Opacity of background color overlay (0-1) |
| backgroundColor | color | No | Optional color to blend with blurred background |
| format | select | No | Choose output format or keep original |
| quality | number | No | Output quality for lossy formats (JPEG, WebP). Higher = better quality but larger file size |
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-extend-blur-background": {
"name": "image-extend-blur-background",
"description": "Extend image canvas with blurred background, perfect for portraits, product photos, and professional presentations",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=image-extend-blur-background",
"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-extend-blur-background",
"arguments": {
"imageFile": "https://example.com/file.ext",
"uniformPadding": 100,
"topPadding": 0,
"rightPadding": 0,
"bottomPadding": 0,
"leftPadding": 0,
"blurStrength": 20,
"backgroundOpacity": 1,
"backgroundColor": "Select overlay color (optional)...",
"format": "original",
"quality": 90
}
}
}Questions or issues? Contact [email protected]