1.3.0 - view - scaling - transparency grid issue

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

Moderators: xnview, Dreamer

User avatar
user0
XnThusiast
Posts: 3168
Joined: Sat May 09, 2015 9:37 am

1.3.0 - view - scaling - transparency grid issue

Post by user0 »

XnViewMP 1.3.0-1.12.2
Windows11 (26H2), 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 it more noticeable (in Settings>View)
  • have test images w transparency (100x100px, 1-32bit)
    test_img_transparency_grid_1.zip

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



Issue B
transparency_grid_scale_issue.png
Issue B1
1. open test image in Viewer (OR Browser - Preview), zoom 100%
transparent layer has 24x24 grid and 101x100 size
Issue B2
1. open test image in Browser
2. increase thumbnail size to be >100px
transparent layer has ~24x24 grid, 99x99 size and is blurry


Issue C
1. open test image in Viewer, zoom 100%
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 still be rendered (visible on the sides)
expected
when turning off transparency, maybe disable transparency grid as well, as its not supposed to be visible anyway









Related
You do not have the required permissions to view the files attached to this post.
Last edited by user0 on Wed Oct 28, 2026 9:34 am, edited 13 times in total.
User avatar
XnTriq
Forum Librarian
Posts: 6580
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 Tools → Settings… → View → View activated, user0?
User avatar
user0
XnThusiast
Posts: 3168
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 Tools → Settings… → View → View 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: 6580
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.
User avatar
xnview
Author of XnView
Posts: 48913
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: 1.3.0 - view - scaling - transparency grid issue

Post by xnview »

:bugconfirmed: Thanks to your detailed description I can reproduce issue 1 & issue 2.