Categories

Image Perspective Transformation

Apply perspective transformation for 3D-like effects and perspective correction

Click to upload file or drag and drop file here

Maximum file size: 10MB Supported formats: image/jpeg, image/png, image/webp, image/gif, image/bmp, image/tiff

Upload any image file (JPEG, PNG, WebP, GIF, BMP, TIFF) for perspective transformation

X coordinate of the top-left corner in the output

Y coordinate of the top-left corner in the output

X coordinate of the top-right corner in the output

Y coordinate of the top-right corner in the output

X coordinate of the bottom-left corner in the output

Y coordinate of the bottom-left corner in the output

X coordinate of the bottom-right corner in the output

Y coordinate of the bottom-right corner in the output

Background color for empty areas (hex #RRGGBB or #RRGGBBAA, or color name)

Output format for the result image (PNG recommended for transparency)

Output quality for lossy formats

Key Facts

Category
Design
Input Types
file, number, text, select
Output Type
file
Sample Coverage
4
API Ready
Yes

Overview

The Image Perspective Transformation tool allows you to precisely adjust the geometric orientation of your images, enabling 3D-like effects and professional-grade perspective correction.

When to Use

  • Correcting skewed photos taken at an angle to make them appear flat.
  • Mapping flat images onto 3D surfaces for mockups or design presentations.
  • Fixing geometric distortion in architectural or document photography.

How It Works

  • Upload your image file in any supported format like PNG, JPEG, or WebP.
  • Define the target coordinates for the four corners of your image to set the new perspective.
  • Adjust the background color and output quality settings as needed.
  • Process the image to generate a transformed file with your specified geometric adjustments.

Use Cases

Straightening tilted document scans for better readability.
Creating realistic product mockups by warping labels onto packaging.
Correcting architectural photos to remove keystoning effects.

Examples

1. Document Perspective Correction

Archivist
Background
A collection of historical documents was photographed at an angle, making the text difficult to read and analyze.
Problem
The images are skewed, requiring a perspective shift to restore a top-down view.
How to Use
Upload the document image and adjust the corner coordinates to align the document edges with the frame boundaries.
Outcome
The document is flattened, providing a clear, readable, and professional-looking scan.

2. Product Mockup Creation

Graphic Designer
Background
A designer needs to place a flat logo design onto a photo of a slanted billboard.
Problem
The logo looks unnatural because it lacks the correct perspective to match the billboard's angle.
How to Use
Upload the logo image and input the billboard's corner coordinates into the perspective transformation tool.
Example Config
format: png, background: transparent
Outcome
The logo is perfectly warped to match the billboard's perspective, creating a realistic mockup.

Try with Samples

image, png, jpg

Related Hubs

FAQ

What file formats are supported?

You can upload JPEG, PNG, WebP, GIF, BMP, and TIFF files.

How do I control the perspective?

You control the transformation by inputting specific X and Y coordinates for the top-left, top-right, bottom-left, and bottom-right corners.

Can I keep the background transparent?

Yes, by selecting PNG as your output format and setting the background color to 'transparent'.

Is there a limit to the file size?

The tool supports image files up to 10MB.

Does this tool change the image resolution?

The tool performs a geometric warp based on your coordinate inputs, which may result in resampling the image pixels to fit the new perspective.

API Documentation

Request Endpoint

POST /en/api/tools/image-perspective

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)"
}
File: File

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]