Two operations people call “resizing”
Cropping selects a smaller rectangle of the picture and throws the rest away; the pixels inside keep their original scale. Resizing changes the pixel dimensions of the whole picture, either shrinking or enlarging it. They solve different problems: cropping fixes composition — what is in the frame — while resizing fixes delivery — how many pixels the file carries.
Most real tasks need both. A 4000×3000 holiday photo probably needs cropping to a 16:9 frame for a cover image, then downscaling to 1600×900 so the page loads quickly. Doing them in the other order works too, but cropping first keeps the resampling maths simpler and the file smaller along the way.
Pixel dimensions are not print size
A file has pixel dimensions; a print has physical dimensions. The bridge between them is DPI. Sending a 1200×800 image to a printer at 300 DPI produces roughly 4×2.7 inches. The same file on screen has no inherent physical size — the browser simply maps pixels to display pixels. When someone asks for a “300 DPI” image for print, what they usually mean is “enough pixels that 300 DPI is achievable at the intended size,” which is a dimension request in disguise.
Downscaling: use a good resampler
Shrinking removes pixels, and how those pixels are combined matters. Nearest-neighbour sampling drops detail unevenly and leaves jagged edges; bilinear blending is fast but slightly soft. Bicubic and Lanczos-style resampling average over a wider neighbourhood and keep edges cleaner. Browsers and canvas implementations expose high-quality smoothing for exactly this reason, and a modern encoder then handles the final compression.
Two practical rules: downscale in one step rather than several (repeated 80% reductions compound artefacts), and never downscale below the dimensions the final display needs. A 1600px image shown at 1600 CSS pixels is fine; a 3200px original shown at 800 is usually wasted bytes.
Upscaling cannot invent detail
Enlarging interpolates between existing pixels, so new detail is estimated, not recovered. The result is smoother but softer; text and sharp logos show it first. Mild upscaling — 110–125% — is often acceptable, especially after a good JPEG-quality step. Large upscales look blurred no matter which algorithm you choose, and AI upscalers that “add” detail are reconstructing plausible texture rather than recording reality, which matters for evidence, product shots and documents.
Aspect ratio decides the shape
Aspect ratio is width divided by height, and it is preserved automatically whenever you lock it. Common targets: 1:1 for avatars and product tiles, 4:3 for classic photos and tablet screens, 3:2 for most camera sensors, 16:9 for video frames, covers and hero images. Change the ratio by cropping, not by stretching — a stretched image distorts faces and text. If the source has extra content on one axis, crop it away; if it lacks content, a slightly different ratio is usually better than a distorted one.
Metadata and privacy
Re-encoding through a canvas drops EXIF metadata, including camera model, capture time and GPS coordinates. That is usually desirable before publishing a photo, but remember it also removes the orientation flag — which is fine once the image has already been drawn upright, and a common cause of sideways photos when files are copied without re-encoding.
Choosing the export format
For photographs, JPEG at quality 80–90 is the smallest sane choice. For screenshots, logos and anything with sharp edges or transparency, PNG or lossless WebP avoids the ringing that JPEG adds around text. WebP is usually smaller than JPEG at comparable quality and is supported by every current browser; keep JPEG when the file must open in older software or email clients.
A practical workflow
Decide the final dimensions before opening the tool, crop to the aspect ratio the layout requires, set the output size to exactly those pixels, then export at the lowest quality that still looks right at 100% zoom. Check the result at the size it will actually be shown rather than zoomed in, and keep the original file — the tool only reads it and writes a new copy.
Crop and resize in one pass with our image resizer and cropper: drag the box, type exact pixels or a percentage, choose JPG, PNG or WebP, and download the result. Nothing is uploaded.