1.3.1 - draw - incorrect watermark positioning when win scale <>100%

Reported bugs that have been closed and/or resolved

Moderators: helmut, XnTriq, xnview, Dreamer

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

1.3.1 - draw - incorrect watermark positioning when win scale <>100%

Post by user0 »

XnView: MP 1.3.1 64bits
OS: Windows 64bit (21H1), display resolution 3840x2160, win scaling 150%

Draw tool - incorrect watermark positioning
My test image is 1000x1000px, watermark places somewhere at 1500px in some cases.

To reproduce:
1. run clean portable XnViewMP
2. open image
3. open Draw tool (Shift+D)
4. insert watermark
5. try to position it anywehere, except top-left corver

Actual behaviour:
Only Top-Left corner option position Watermark correctly, all other options do not.
It looks like image size determines incorrectly (e.g. original +50%)

Expected behaviour:
Watermark shall position correctly within image size.

Suggestion (default position):
Current default position of inserted watermark is something like "center-top -10%".
Guess it shall be something from the existing list (e.g. Top-Left corner).
Attachments
draw_incorrect_watermark_positioning.png
Last edited by user0 on Mon Oct 24, 2022 6:51 am, edited 1 time in total.
User avatar
xnview
Author of XnView
Posts: 46235
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: 1.3.1 - BUG - draw - incorrect watermark positioning

Post by xnview »

i can't reproduce, could you send me files used?
Pierre.
User avatar
user0
XnThusiast
Posts: 2411
Joined: Sat May 09, 2015 9:37 am

Re: 1.3.1 - BUG - draw - incorrect watermark positioning

Post by user0 »

xnview wrote: Sun Oct 23, 2022 1:12 pm i can't reproduce, could you send me files used?
It works with any image.
I have located the issue - it caused by win scale, 150% in my case.

There is no issue in the following cases:
- when I change win scale to 100% OR
- when I run program with -noDpiScaling param
User avatar
xnview
Author of XnView
Posts: 46235
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: 1.3.1 - draw - incorrect watermark positioning when win scale <>100%

Post by xnview »

:bugconfirmed: Thanks to your detailed description I can reproduce the problem.
Pierre.
User avatar
user0
XnThusiast
Posts: 2411
Joined: Sat May 09, 2015 9:37 am

Re: 1.3.1 - draw - incorrect watermark positioning when win scale <>100%

Post by user0 »

fixed in 1.4.0b1
Post Reply