Pixel-perfect scaling

Ask for help and post your question on how to use XnView MP.

Moderators: XnTriq, helmut, xnview

Bultro
Posts: 1
Joined: Wed Jan 31, 2024 9:33 pm

Pixel-perfect scaling

Post by Bultro »

I would like to do integer resizing (enlarging) of images, for example 200% or 300% with every pixel becoming exactly a 2x2 or 3x3 square of the same color. This way pixel art becomes larger but retains exactly the same look, with pixel precision. I couldn't do it with any filter, they always interpolate the colors. Is it possible somehow?
User avatar
michel038
XnThusiast
Posts: 1247
Joined: Tue Sep 27, 2016 8:18 am
Location: France

Re: Pixel-perfect scaling

Post by michel038 »

Perhaps "Nearest Neighbour" ?

Open image in view mode (double click)
Image >Resize ...
choose width or height (200% ?)
Method : Nearest neignbour
Keep ratio
Ok