What is the difference between upscaling and downscaling?
Downscaling reduces an image's pixel dimensions by discarding detail, while upscaling increases them by estimating new pixels, which cannot restore detail that was never captured.
By Rocco Bombardieri · Updated
Want the full walkthrough? Read: Why is my PNG file so large? →
Explained in more detail
Downscaling makes an image smaller. Many source pixels are combined into each output pixel, so detail is lost, but the result usually still looks sharp at its new size. It is the safe direction. A photo that is 4000 pixels wide displayed at 800 pixels wide gains nothing from the extra data, and downscaling it reduces file size dramatically, since pixel count falls with the square of the scale factor.
Upscaling makes an image larger. The extra pixels have to be invented by interpolation, so they are smooth guesses rather than real detail. A 500 pixel image stretched to 2000 pixels looks soft, and edges become blurry. There is no setting that fixes this with ordinary resampling. Machine-learning upscalers can synthesize plausible detail, but what they produce is generated, not recovered.
The rule of thumb: resize down freely, resize up sparingly. If you need a large image, start from a large source.
Aspect ratio matters in both directions. Keep the ratio locked or the image will stretch. Also scale once, from the original, rather than shrinking and enlarging repeatedly, since each pass loses information.
Display density complicates this on the web. For crisp results on high-density screens, a common approach is to supply an image with about twice the pixel dimensions of its displayed size for 2x screens, then let the browser scale it down.
In Triim's resize tool, you can set exact pixels, a percentage or a fit-within box, with the aspect ratio locked by default. It works in the browser.