# Image Scaling

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

> Canonical page: https://elysiatools.com/en/tools/image-scaling

- **Category:** Media

- **Keywords:** image, scaling, scale, transform, matrix, zoom, resize, uniform, non-uniform, width, height

## 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.

## Inputs

- **Image File** (file): Upload any image file (JPEG, PNG, WebP, GIF, BMP, TIFF) for scaling transformation
- **Scale X (Horizontal)** (range): Horizontal scaling factor (0.1 to 5.0, 1.0 = original size)
- **Scale Y (Vertical)** (range): Vertical scaling factor (0.1 to 5.0, 1.0 = original size)
- **Uniform Scaling** (checkbox): Maintain aspect ratio (scale X and Y equally)
- **Background Color** (text): Background color for transparent areas (hex #RRGGBB or #RRGGBBAA, or color name)
- **Output Format** (select): Choose output format or keep original. PNG recommended for transparency
- **Quality (1-100)** (number): Output quality for lossy formats (JPEG, WebP). Higher = better quality but larger file size

## 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.

## Frequently asked questions

### 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.

## Related tools

- [Batch Image Convert](https://elysiatools.com/en/tools/batch-convert): Convert multiple images to different formats with quality settings and batch processing
- [Image Composite Matrix](https://elysiatools.com/en/tools/image-composite-matrix): Apply composite transformation by combining multiple basic transformations (scaling, rotation, shearing). See how transformation matrices multiply and create complex effects.
- [Image Custom Matrix](https://elysiatools.com/en/tools/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.
- [Image Rotation Matrix](https://elysiatools.com/en/tools/image-rotation-matrix): Apply rotation transformation using rotation matrix mathematics. See the 2x2 rotation matrix in action and understand the trigonometric principles behind image rotation.
- [Image Shear](https://elysiatools.com/en/tools/image-shear): Apply shear transformation to create slanted or skewed images. Visualize shear matrices and see how they distort the image geometry.
- [Image Translation](https://elysiatools.com/en/tools/image-translation): Apply translation transformation to move images horizontally and vertically. Visualize the translation matrix and see how pixel coordinates shift.
- [Image Affine Transformation](https://elysiatools.com/en/tools/image-affine): Apply affine transformation for scaling, rotation, shearing, and translation
- [Image Flip (Vertical)](https://elysiatools.com/en/tools/image-flip): Flip images vertically (top to bottom) with options for output format and quality

## Samples

- [Web Image Processing Python Samples](https://elysiatools.com/en/samples/web-image-processing-python): Web Python image processing examples using PIL/Pillow including reading, saving, resizing, and format conversion
- [Web Image Processing TypeScript Samples](https://elysiatools.com/en/samples/web-image-processing-typescript): Web TypeScript image processing examples including image read/save, scaling, and format conversion
- [Web Image Processing Rust Samples](https://elysiatools.com/en/samples/web-image-processing-rust): Web Rust image processing examples including image read/save, scaling, and format conversion
- [Android Image Processing Java Samples](https://elysiatools.com/en/samples/android-image-processing-java): Android Java image processing examples including reading/saving images, scaling, and format conversion

## Related content

- [Image Geometry Transform Tools](https://elysiatools.com/en/hubs/image-geometry-transform-tools): Choose rotation, flip, crop, affine, perspective, scale, or padding transforms and verify framing, dimensions, orientation, and clean transparent or background edges.
