Image Edge Detection
Apply professional edge detection algorithms (Sobel, Prewitt, Laplacian, Canny) with adjustable thresholds and visualization options
API Documentation
Request Endpoint
Request Parameters
| Parameter Name | Type | Required | Description |
|---|---|---|---|
| imageFile | file (Upload required) | Yes | Upload image for edge detection |
| detectionMethod | select | No | - |
| threshold | number | No | Threshold for edge detection (0-255) |
| threshold2 | number | No | High threshold for Canny detector (0-255) |
| apertureSize | number | No | Kernel aperture size (odd number, 3-15) |
| outputMode | select | No | - |
| edgeColor | color | No | Color for detected edges (hex or R,G,B) |
| showOriginal | checkbox | No | Display original image alongside edge detection results |
| format | select | No | - |
| quality | number | No | Output quality for lossy formats |
File type parameters need to be uploaded first via POST /upload/image-edge-detect to get filePath, then pass filePath to the corresponding file field.
Response Format
{
"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)"
}
AI MCP Documentation
Add this tool to your MCP server configuration:
{
"mcpServers": {
"elysiatools-image-edge-detect": {
"name": "image-edge-detect",
"description": "Apply professional edge detection algorithms (Sobel, Prewitt, Laplacian, Canny) with adjustable thresholds and visualization options",
"baseUrl": "https://elysiatools.com/mcp/sse?toolId=image-edge-detect",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}
You can chain multiple tools, e.g.: `https://elysiatools.com/mcp/sse?toolId=png-to-webp,jpg-to-webp,gif-to-webp`, max 20 tools.
Supports URL file links or Base64 encoding for file parameters.
If you encounter any issues, please contact us at [email protected]