Media
Image Shear
Apply shear transformation to create slanted or skewed images. Visualize shear matrices and see how they distort the image geometry.
file· File result
Quick start
Call this tool from your code in three languages.
cURL
# 1) Upload each file first → returns { filePath }
curl -X POST 'https://api.elysiatools.com/upload/image-shear' \
-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-shear' \
-F 'imageFile=/path/to/file.ext' \
-F 'shearX=0' \
-F 'shearY=0' \
-F 'background=transparent' \
-F 'format=original' \
-F 'quality=95'
API reference
Send a POST request with your inputs as JSON. File parameters require a separate upload first.
Endpoint
HTTP
POST https://api.elysiatools.com/en/api/tools/image-shear
Parameters
| Name | Type | Required | Description |
|---|
| imageFile | fileupload required | Yes | Upload any image file (JPEG, PNG, WebP, GIF, BMP, TIFF) for shear transformation |
| shearX | range | Yes | Horizontal shear factor (-2.0 to 2.0, 0 = no shear, positive = rightward tilt) |
| shearY | range | Yes | Vertical shear factor (-2.0 to 2.0, 0 = no shear, positive = downward tilt) |
| background | text | No | Background color for transparent areas (hex #RRGGBB or #RRGGBBAA, or color name) |
| format |
MCP integration
Add this tool to your Model Context Protocol server so AI agents can list and call it.
Server configuration
Add this block to your MCP client configuration:
mcp.json
{
"mcpServers": {
"elysiatools-image-shear": {
"name": "image-shear",
"description": "Apply shear transformation to create slanted or skewed images. Visualize shear matrices and see how they distort the image geometry.",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=image-shear",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}
List available tools
After connecting to the SSE endpoint, list the exposed tools:
tools/list
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list"
}
Call this tool
Invoke the tool by its id, passing arguments built from its parameters:
tools/call
{
"jsonrpc": "2.0",
"id": 2,
"method": "tools/call",
"params": {
"name": "image-shear",
"arguments": {
"imageFile": "https://example.com/file.ext",
"shearX": "0",
"shearY": "0",
"background": "transparent",
"format": "original",
"quality": 95
}
}
}
Chain multiple tools in one session with a comma-separated toolId list, e.g. /mcp/sse?toolId=png-to-webp,jpg-to-webp,gif-to-webp (max 20). | 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-type parameters must be uploaded first via POST /upload/image-shear, then the returned filePath is passed to the corresponding file field.
Response format
File result
JSON
{
"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)"
}
File parameters accept a public file URL only (https://…). Local paths, data: URIs, and Base64 strings are not supported.
Image Shear — API & MCP | Elysia Tools