Categories

Image Scaling

Apply scaling transformation to images with visual matrix representation. Supports uniform and non-uniform scaling with real-time preview.

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 scaling transformation

0.1 1.0 5

Horizontal scaling factor (0.1 to 5.0, 1.0 = original size)

0.1 1.0 5

Vertical scaling factor (0.1 to 5.0, 1.0 = original size)

Maintain aspect ratio (scale X and Y equally)

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, range, checkbox, text, select, number
Output Type
file
Sample Coverage
4
API Ready
Yes

Overview

The Image Scaling tool allows you to precisely resize images using horizontal and vertical scaling factors. Whether you need uniform scaling to maintain aspect ratio or non-uniform adjustments to stretch or compress specific dimensions, this utility provides a visual matrix representation and real-time control over your output.

When to Use

  • When you need to resize images for web or print while maintaining specific aspect ratios.
  • When you want to create non-uniform scaling effects to adjust the width or height of an image independently.
  • When you need to convert image formats or optimize file quality during the resizing process.

How It Works

  • Upload your source image file (JPEG, PNG, WebP, GIF, BMP, or TIFF).
  • Adjust the Scale X and Scale Y sliders to define your desired dimensions, or enable 'Uniform Scaling' to lock the aspect ratio.
  • Configure optional settings like background color for transparency, output format, and compression quality.
  • Download your transformed image once the scaling matrix is applied.

Use Cases

Preparing high-resolution assets for web thumbnails by scaling down while maintaining quality.
Creating custom image dimensions for social media banners using non-uniform scaling.
Converting and resizing legacy image formats like BMP or TIFF into optimized WebP files.

Examples

1. Web Thumbnail Generation

Web Developer
Background
A developer needs to convert a large 4000px wide PNG hero image into a 400px wide thumbnail for a blog post.
Problem
The original file is too large for web performance and needs to be resized while maintaining the aspect ratio.
How to Use
Upload the PNG, enable 'Uniform Scaling', set Scale X to 0.1, and select WebP as the output format.
Example Config
uniform: true, scaleX: 0.1, format: 'webp', quality: 80
Outcome
A high-quality, lightweight WebP thumbnail perfectly scaled to 10% of the original size.

2. Creative Aspect Ratio Adjustment

Graphic Designer
Background
A designer has a square product photo that needs to be stretched into a wide banner format for a website header.
Problem
The image needs to be wider than it is tall without cropping the content.
How to Use
Upload the image, disable 'Uniform Scaling', set Scale X to 2.0 and Scale Y to 1.0.
Example Config
uniform: false, scaleX: 2.0, scaleY: 1.0
Outcome
The image is horizontally stretched to double its original width, creating a wide banner effect.

Try with Samples

image, png, jpg

Related Hubs

FAQ

Can I scale images without distorting them?

Yes, enable the 'Uniform Scaling' checkbox to ensure the aspect ratio remains locked while you adjust the scale.

What happens to transparent areas when I scale an image?

You can define a custom background color (hex code or color name) to fill transparent areas during the scaling process.

Does this tool support non-uniform scaling?

Yes, by disabling 'Uniform Scaling', you can independently set different horizontal and vertical scaling factors.

Which file formats are supported for output?

You can choose to keep the original format or convert your image to JPEG, PNG, or WebP.

How does the quality setting affect my file?

The quality setting (1-100) controls compression for lossy formats like JPEG and WebP; higher values result in better visual quality but larger file sizes.

API Documentation

Request Endpoint

POST /en/api/tools/image-scaling

Request Parameters

Parameter Name Type Required Description
imageFile file (Upload required) Yes Upload any image file (JPEG, PNG, WebP, GIF, BMP, TIFF) for scaling transformation
scaleX range Yes Horizontal scaling factor (0.1 to 5.0, 1.0 = original size)
scaleY range No Vertical scaling factor (0.1 to 5.0, 1.0 = original size)
uniform checkbox No Maintain aspect ratio (scale X and Y equally)
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-scaling 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-scaling": {
      "name": "image-scaling",
      "description": "Apply scaling transformation to images with visual matrix representation. Supports uniform and non-uniform scaling with real-time preview.",
      "baseUrl": "https://elysiatools.com/mcp/sse?toolId=image-scaling",
      "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]