carina-studio / PixelViewer

A cross-platform image viewer which supports reading raw Luminance/YUV/RGB/ARGB/Bayer pixels data from file and rendering it.
https://carina-studio.github.io/PixelViewer/
MIT License
225 stars 36 forks source link

Nearest Neighbor Scaling #10

Closed ThioJoe closed 9 months ago

ThioJoe commented 1 year ago

I zoomed into a small image (256x256) and was surprised to see that nearest neighbor scaling is not used, so it becomes very blurry. I think that should definitely be an option for a tool such as this that lets you see the information about individual pixels. Because right now if you zoom in, it's hard to tell which pixel you're actually hovering on.

Overall I really like the program though, it has come in handy.

See example below - With nearest neighbor you can distinctly see each individual pixel.

Original 256x256 Icon: Registry1

Zoomed in with pixelviewer:

image

Zoomed in with photoshop (nearest neighbor):

image
carina-studio commented 1 year ago

@ThioJoe Thanks for feedback, we will check how to achieve this.

kobenein commented 9 months ago

I have the same requirement!

hamster620 commented 9 months ago

Hi @kobenein and @ThioJoe , rendering with nearest neighbor when scale >= 1.0 has been implemented in PixelViewer 3.0. We will soon release PixelViewer 3.0 preview with this behavior. Thanks.

截圖 2023-09-28 下午2 32 40
hamster620 commented 9 months ago

Rendering pixels with nearest neighbor has been released with PixelViewer 3.0 Preview.