Page 1 of 1

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

Posted: Tue Oct 18, 2022 7:32 am
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).

Re: 1.3.1 - BUG - draw - incorrect watermark positioning

Posted: Sun Oct 23, 2022 1:12 pm
by xnview
i can't reproduce, could you send me files used?

Re: 1.3.1 - BUG - draw - incorrect watermark positioning

Posted: Sun Oct 23, 2022 5:12 pm
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

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

Posted: Wed Oct 26, 2022 11:51 am
by xnview
:bugconfirmed: Thanks to your detailed description I can reproduce the problem.

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

Posted: Wed Nov 23, 2022 11:44 am
by user0
fixed in 1.4.0b1