Categories

Image Custom Matrix

Apply custom 2x2 transformation matrix to images. Input any four matrix values [a, b; c, d] to create unique transformations. Great for learning linear algebra and image processing.

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 custom matrix transformation

Top-left value of the 2×2 transformation matrix (affects X scaling and rotation)

Top-right value of the 2×2 transformation matrix (affects X shear and rotation)

Bottom-left value of the 2×2 transformation matrix (affects Y shear and rotation)

Bottom-right value of the 2×2 transformation matrix (affects Y scaling and rotation)

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

Choose output format or keep original. PNG recommended for transparency

Output quality for lossy formats (JPEG, WebP). Higher = better quality but larger file size

Key Facts

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

Overview

Image Custom Matrix is an online media tool for apply custom 2x2 transformation matrix to images. input any four matrix values [a, b; c, d] to create unique transformations. great for learning linear algebra and image processing. It is especially useful when working with image, png content.

When to Use

  • Use it when you need to convert image, png content quickly in the browser.
  • Helpful for media workflows that need repeatable inputs and fast results.
  • A good fit when you want to test with real files before running the same workflow in code or API calls.

How It Works

  • Provide Image File, Matrix [0,0] (Top-Left), Matrix [0,1] (Top-Right), Matrix [1,0] (Bottom-Left) as input to the tool.
  • The tool processes the request and returns a file result.
  • For file workflows, start with representative samples such as image, png test files to verify edge cases and output quality.

Use Cases

Convert image, png data during debugging or QA.
Validate expected output before using the API or automation flows.
Test the workflow with representative sample files and edge cases.

Try with Samples

image, png, jpg

Related Hubs

FAQ

What does Image Custom Matrix do?

Image Custom Matrix helps you convert image, png content online without setting up a separate local script or app.

When should I use this tool?

Use it when you need a quick convert workflow, want to verify output, or need a browser-based utility for media tasks.

Can I try this tool with sample data?

Yes. This page can recommend related sample files so you can test the workflow immediately.

What inputs does Image Custom Matrix accept?

Image Custom Matrix accepts Image File, Matrix [0,0] (Top-Left), Matrix [0,1] (Top-Right), Matrix [1,0] (Bottom-Left) and supports file uploads for 1 field.

Is there an API for Image Custom Matrix?

Yes. The tool page includes an API endpoint so you can move from manual testing to scripted usage.

API Documentation

Request Endpoint

POST /en/api/tools/image-custom-matrix

Request Parameters

Parameter Name Type Required Description
imageFile file (Upload required) Yes Upload any image file (JPEG, PNG, WebP, GIF, BMP, TIFF) for custom matrix transformation
m00 number Yes Top-left value of the 2×2 transformation matrix (affects X scaling and rotation)
m01 number Yes Top-right value of the 2×2 transformation matrix (affects X shear and rotation)
m10 number Yes Bottom-left value of the 2×2 transformation matrix (affects Y shear and rotation)
m11 number Yes Bottom-right value of the 2×2 transformation matrix (affects Y scaling and rotation)
background text No Background color for transparent areas (hex #RRGGBB or #RRGGBBAA, or color name)
format select No 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 need to be uploaded first via POST /upload/image-custom-matrix 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-custom-matrix": {
      "name": "image-custom-matrix",
      "description": "Apply custom 2x2 transformation matrix to images. Input any four matrix values [a, b; c, d] to create unique transformations. Great for learning linear algebra and image processing.",
      "baseUrl": "https://elysiatools.com/mcp/sse?toolId=image-custom-matrix",
      "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]