1.9.8: A paletted 4-bit PNG image is displayed incorrectly when zoomed in

Bugs which are supposed to be fixed in the next test version (not available yet)

Moderators: xnview, Dreamer

Post Reply
User avatar
Lord_D
Posts: 2
Joined: Fri Jan 12, 2024 4:32 am

1.9.8: A paletted 4-bit PNG image is displayed incorrectly when zoomed in

Post by Lord_D »

XnView: MP 1.9.8 - 64 bit
OS: Windows 10 - 64bit

When a paletted 4-bit PNG is zoomed in, it turns into a series of stripes. Apparently, one column stretches across the entire width of the image.
Example image
Example image
gradient_dither.png (1.69 KiB) Viewed 59 times
Screenshot demonstrating the problem
Screenshot demonstrating the problem
screenshot.png (64.75 KiB) Viewed 59 times
ImageMagick command to create such images:

Code: Select all

magick.exe input.png -remap eink_cmap.gif output.png
Effect: A paletted 4-bit PNG display incorrectly when zoomed in.

To reproduce:
1. Open attached gradient_dither.png in XnView MP.
2. Zoom in more than 100%.
Actual behaviour (bug): The image turns into a series of stripes :bug:

Expected behaviour: The image is displayed correctly.
Attachments
Palette
Palette
eink_cmap.gif (377 Bytes) Viewed 59 times
User avatar
user0
XnThusiast
Posts: 2674
Joined: Sat May 09, 2015 9:37 am

Re: 1.9.8: A paletted 4-bit PNG image is displayed incorrectly when zoomed in

Post by user0 »

I can reproduce, caused by antialiasing zoom-in filters (all except bilinear)
however, no issues with same filters during zoom-out
User avatar
xnview
Author of XnView
Posts: 47068
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: 1.9.8: A paletted 4-bit PNG image is displayed incorrectly when zoomed in

Post by xnview »

:bugconfirmed: Thanks to your detailed description I can reproduce the problem.
Pierre.
Post Reply