What Does This Image Resizer Do?
This resizer changes the pixel dimensions of a single image. You load a picture, the tool fills in its current width and height, you type the numbers you want, and it redraws the image at that size. A 4000x3000 photo destined for a 600-pixel-wide layout slot is carrying more than six times the pixels it needs — resizing removes that waste before the file is ever served, which is the single most effective thing you can do to make an image lighter.
By default the aspect ratio is locked, so entering a width computes the matching height automatically and the picture keeps its proportions. Unlocking the ratio lets you set both numbers independently, which is what you want when a layout demands exact dimensions and you accept some stretching. Output can be saved as PNG, JPEG, or WebP regardless of what you uploaded.
The resize is performed with the Canvas API. The image is drawn onto a canvas sized to your target dimensions using the browser's high-quality smoothing, and `toBlob()` encodes the result. Everything runs inside your browser tab — the file is read locally and downloaded locally, with no upload step and no server involved, which matters when you are working with client photos or unreleased design assets.