Image Levels Adjustment
Adjust image levels with precise control over shadows, midtones, and highlights for professional tonal correction
API Documentation
Request Endpoint
Request Parameters
| Parameter Name | Type | Required | Description |
|---|---|---|---|
| imageFile | file (Upload required) | Yes | Upload any image file (JPEG, PNG, WebP, GIF, BMP, TIFF) for levels adjustment |
| shadowInput | number | No | Shadow input level (0 = pure black, 1 = white). Maps input shadow levels to new values |
| shadowOutput | number | No | Shadow output level (0 = pure black, 1 = white). Sets the output for shadow areas |
| midtoneInput | number | No | Midtone input level (0 = pure black, 0.5 = middle gray, 1 = white). Controls tonal balance |
| midtoneOutput | number | No | Midtone output level (0 = pure black, 0.5 = middle gray, 1 = white). Adjusts overall brightness |
| highlightInput | number | No | Highlight input level (0 = pure black, 1 = white). Maps input highlight levels to new values |
| highlightOutput | number | No | Highlight output level (0 = pure black, 1 = white). Sets the output for highlight areas |
| format | select | No | Choose output format or keep original. PNG recommended for maximum quality |
| quality | number | No | Output quality for lossy formats (JPEG, WebP). Higher = better quality but larger file size |
File type parameters need to be uploaded first via POST /upload/image-levels 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-levels": {
"name": "image-levels",
"description": "Adjust image levels with precise control over shadows, midtones, and highlights for professional tonal correction",
"baseUrl": "https://elysiatools.com/mcp/sse?toolId=image-levels",
"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]