Design
Add rounded corner effects to images with adjustable radius and corner selection
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-rounded-corners' \
-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-rounded-corners' \
-F 'imageFile=/path/to/file.ext' \
-F 'radius=10' \
-F 'cornerMode=all' \
-F 'topLeft=0' \
-F 'topRight=0' \
-F 'bottomLeft=0' \
-F 'bottomRight=0' \
-F 'backgroundColor=#ffffff' \
-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-rounded-corners| Name | Type | Required | Description |
|---|---|---|---|
| imageFile | fileupload required | Yes | Upload any image file (JPEG, PNG, WebP, GIF, BMP, TIFF) to apply rounded corners |
| radius | number | No | Radius of rounded corners. Will be limited to image dimensions |
| cornerMode | select | Yes | Choose which corners to apply rounded effect to |
| topLeft | number | No | Radius for top left corner. Used only in custom mode |
| topRight |
| number |
| No |
| Radius for top right corner. Used only in custom mode |
| bottomLeft | number | No | Radius for bottom left corner. Used only in custom mode |
| bottomRight | number | No | Radius for bottom right corner. Used only in custom mode |
| backgroundColor | color | No | Background color for corners (only affects JPEG format) |
| format | select | No | Choose output format or keep original. PNG recommended for transparency |
| 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-rounded-corners": {
"name": "image-rounded-corners",
"description": "Add rounded corner effects to images with adjustable radius and corner selection",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=image-rounded-corners",
"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-rounded-corners",
"arguments": {
"imageFile": "https://example.com/file.ext",
"radius": 10,
"cornerMode": "all",
"topLeft": 0,
"topRight": 0,
"bottomLeft": 0,
"bottomRight": 0,
"backgroundColor": "#ffffff",
"format": "original",
"quality": 90
}
}
}Questions or issues? Contact [email protected]