Image Linear Transformation
Apply linear transformation (a * input + b) to adjust image levels, brightness, and contrast
API Documentation
Request Endpoint
Request Parameters
| Parameter Name | Type | Required | Description |
|---|---|---|---|
| imageFile | file (Upload required) | Yes | Upload any image file to apply linear transformation |
| multiplier | text | No | Multiplier value (a). Can be single number for all channels or comma-separated values for each channel. Formula: result = a * input + b |
| offset | text | No | Offset value (b). Can be single number for all channels or comma-separated values for each channel. Formula: result = a * input + b |
| channels | select | No | Apply transformation to specific channels or all channels |
| format | select | No | Choose output format or keep original |
| quality | number | No | Output quality for lossy formats |
File type parameters need to be uploaded first via POST /upload/image-linear 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-linear": {
"name": "image-linear",
"description": "Apply linear transformation (a * input + b) to adjust image levels, brightness, and contrast",
"baseUrl": "https://elysiatools.com/mcp/sse?toolId=image-linear",
"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]