Image Perspective Transformation
Apply perspective transformation for 3D-like effects and perspective 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 perspective transformation |
| topLeftX | number | No | X coordinate of the top-left corner in the output |
| topLeftY | number | No | Y coordinate of the top-left corner in the output |
| topRightX | number | No | X coordinate of the top-right corner in the output |
| topRightY | number | No | Y coordinate of the top-right corner in the output |
| bottomLeftX | number | No | X coordinate of the bottom-left corner in the output |
| bottomLeftY | number | No | Y coordinate of the bottom-left corner in the output |
| bottomRightX | number | No | X coordinate of the bottom-right corner in the output |
| bottomRightY | number | No | Y coordinate of the bottom-right corner in the output |
| background | text | No | Background color for empty areas (hex #RRGGBB or #RRGGBBAA, or color name) |
| format | select | No | Output format for the result image (PNG recommended for transparency) |
| quality | number | No | Output quality for lossy formats |
File type parameters need to be uploaded first via POST /upload/image-perspective 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-perspective": {
"name": "image-perspective",
"description": "Apply perspective transformation for 3D-like effects and perspective correction",
"baseUrl": "https://elysiatools.com/mcp/sse?toolId=image-perspective",
"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]