tezvyn:

Image Scaling: Resizing Pixels Without Ruining Them

Source: Wikipedia: Image scalingbeginner

Image scaling isn't just stretching a picture; it's inventing or discarding pixel data. It's used everywhere from displaying thumbnails to making 1080p video fit a 4K screen.

Image scaling is the art of resizing an image by inventing or discarding pixels. Upscaling creates new pixels to enlarge an image, while downscaling combines them to shrink it. This happens constantly when generating web thumbnails or upscaling video to a higher-resolution screen. The common footgun is picking the wrong interpolation algorithm: using 'nearest-neighbor' for photos creates blocky results, while using a 'bicubic' method on pixel art makes it blurry and loses sharpness.

Read the original → Wikipedia: Image scaling

Get five bites like this every day.

Tezvyn delivers a daily feed of 60-second tech bites with quizzes to lock in what you learn.

Image Scaling: Resizing Pixels Without Ruining Them · Tezvyn