Quantcast
Channel: YesNoCancel » icon
Viewing all articles
Browse latest Browse all 8

Resample not resize

$
0
0

It’s a shame, that even today people still use nearest neighbor resizing in GUI designs, especially in places then it’s not suitable. Taking into account that Lanczos resampling usually offers far better result at no cost (for static images) and even linear filtering outperforms nearest neighbor easily.

Just to make you see what you might be missing I share a couple of images, resampled (downsampled) with different algorithms:

notelarge.png

Original PNG image (once again from Tango) and two smaller versions: Lanczos and Nearest neighbor resized:

notesimple.pngnoteresample.png

Now let’s see some OS X wallpapers:

wpsample.pngwpresize.png

The difference is pretty obvious: “nn” spoils images by making them blocky, distorted and ugly which is arguably an advantage.

So, the tag is simple: unless you know for sure what you’re doing, do not use  nearest neighbor resizing as it’s a fast way to spoil image. Also prevent usage of this mode by programmers (in many cases they use it without a real need) creating applications by your sketches.

Coming back to the title: resample, not resize; resample not, resize and not the opposite ;)



Viewing all articles
Browse latest Browse all 8

Trending Articles