1.3.0 - view - scaling - transparency grid issue

*** Please report new bugs here! ***

Moderators: xnview, Dreamer

Post Reply
User avatar
user0
XnThusiast
Posts: 2680
Joined: Sat May 09, 2015 9:37 am

1.3.0 - view - scaling - transparency grid issue

Post by user0 »

XnViewMP 1.3.0-1.9.8
Windows11 (25H2), display resolution 3840x2160, dpi scale 150%


Viewer/Browser - transparency grid
transparency grid scaling issue

to reproduce
0. prerequisites
  • set win dpi scaling to 150%
  • change Transparency grid color/size (yellow-pink/25px) to make more noticeable (in Settings>View)

Issue A1
1. open test image in Viewer, zoom 100%
Transparency grid will be ~37x38 (25x25px * 1.5)
expected
no need to scale transparency grid

Issue A2
2. turn off transparency
- for 4bit image - uncheck 'Use transparency index' (Ctrl+Alt+H)
- for 32bit image - uncheck 'Use alpha channel' (Ctrl+H)
transparency will turn off - OK
transparent grid will be rendered as well (visible on the sides)
expected
when turning off transparency, maybe disable transparency grid as well, as its not visible anyway


Issue B - image distortion1
1. open test image in Viewer, zoom 100%
image will be distorted
transparent grid will be visible on the right and bottom sides
B.png
B.png (1.01 KiB) Viewed 14 times
expected
render w/o distortion, like the same image w/o transparency
to double check - remove transparency from image, save and reopen
image will be rendered w/o any distortion at 100x100px


Issue C - image distortion2
1. open test image in Viewer, zoom 100%
2. turn on transparency
- for 4bit image - uncheck 'Use transparency index' (Ctrl+Alt+H)
- for 32bit image - uncheck 'Use alpha channel' (Ctrl+H)
3. repeat steps 2 and 3 (quickly for better visibility)
transparency will turn on/off - OK
image will shift (could be related to this shifting as zoom-out antialiasing filter applies at 0-149% range)
C.gif
C.gif (1.43 KiB) Viewed 14 times




Example
  • Bridge
    thumbnails have similar problem of image-transparency grid alignment at certain sizes (any dpi) :D
    other_apps_bridge_thumbnails.png
    other_apps_bridge_thumbnails.png (4.57 KiB) Viewed 5 times





Related
Last edited by user0 on Thu Dec 25, 2025 6:46 pm, edited 8 times in total.
User avatar
XnTriq
Forum Librarian
Posts: 6530
Joined: Sun Sep 25, 2005 3:00 am
Location: Ref Desk

Re: 1.3 BUG - extra border in png RGBA

Post by XnTriq »

Is Zoom on HiDPI screen: 1 image pixel equals 1 screen pixel in ToolsSettings…ViewView activated, user0?
User avatar
user0
XnThusiast
Posts: 2680
Joined: Sat May 09, 2015 9:37 am

Re: 1.3 BUG - extra border in png RGBA

Post by user0 »

XnTriq wrote: Wed Oct 05, 2022 2:00 am Is Zoom on HiDPI screen: 1 image pixel equals 1 screen pixel in ToolsSettings…ViewView activated, user0?
Nope, it is not checked by default.

However, I can confirm that the issue is gone when this box is checked.

It's worth mentioning that the issue is gone if the alpha channel is removed from the png image.
Also no such issue in XnView Classic.
User avatar
XnTriq
Forum Librarian
Posts: 6530
Joined: Sun Sep 25, 2005 3:00 am
Location: Ref Desk

Re: 1.3 BUG - extra border in png RGBA

Post by XnTriq »

user0 wrote: Wed Oct 05, 2022 4:59 amHowever, I can confirm that the issue is gone when this box is checked.
I believe that this setting turns DPI awereness on and off.
Post Reply