Page 1 of 1

1.3.0 - viewer - crop panel - selection width/height issues

Posted: Thu Oct 06, 2022 6:50 pm
by user0
XnViewMP 1.3.0 64bit
Windows10 64bit (21H1), display resolution 3840x2160, win scaling 150%


Crop panel
Few issues with the way selection width/height works.

To reproduce:
1. run clean portable XnViewMP
2. open test image
test_image_100x100.png
test_image_100x100.png (130 Bytes) Viewed 1915 times
3. press SHIFT-X to open Crop panel
4. make selection with the following settings:

Issue A
a.png
a.png (2.01 KiB) Viewed 1915 times
5. press increase width (OR height) button (blue)
it will decrease height (red). Happens when selection rectangular bears against image side (right in this case).

Issue B
b.png
b.png (2.42 KiB) Viewed 1915 times
5. press increase width button (blue)
it will increase width (red) AND decrease height of actual selection rectangular

Issue C
c.png
c.png (2.12 KiB) Viewed 1915 times
5. manually type values that are higher than real image size
nothing prevents user from typing such values

Issue D
d.png
d.png (2.48 KiB) Viewed 1915 times
5. manually type values that are higher than real image size
6. manually resize selection rectangle
program will crash

Expected behaviour:
a),b) it should not be allowed to increase width/height values (via buttons) that are higher than the image size.
c),d) it should not be allowed to manually enter/paste values that are higher than the image size.





Related

Re: 1.3 - BUG - crop panel - selection width/height issues

Posted: Tue Oct 11, 2022 6:17 am
by xnview
:bugconfirmed: Thanks to your detailed description I can reproduce

Re: 1.3.0 - crop panel - selection width/height issues

Posted: Mon May 15, 2023 9:05 am
by xnview
See issue for current status and some details.

Re: 1.3.0 - crop panel - selection width/height issues

Posted: Fri Jun 16, 2023 4:08 pm
by xnview
This problem is supposed to be fixed in XnView MP 1.5.0 beta. Please check and confirm the bug fix here.

Re: 1.3.0 - crop panel - selection width/height issues

Posted: Sat Jun 17, 2023 8:56 am
by user0
1.5.0b1
A - fixed
B - still remain
C - partilly fixed (selection position - still possible to enter 99999, selection size - fixed). Guess its not a big deal and can be ignored
D - still remain

Re: 1.3.0 - crop panel - selection width/height issues

Posted: Tue Jun 20, 2023 1:10 pm
by xnview
user0 wrote: Sat Jun 17, 2023 8:56 am B - still remain
fixed in b2
D - still remain
how do you resize selection after enter 99999, the selection is no more visible??

Re: 1.3.0 - crop panel - selection width/height issues

Posted: Tue Jun 20, 2023 1:33 pm
by user0
150b2

B - fixed

D - fixed
xnview wrote: Tue Jun 20, 2023 1:10 pm
D - still remain
how do you resize selection after enter 99999, the selection is no more visible??
I start with existing selection, than enter 99999
selection turns into ~1x1, but its possible to resize/rotate it
however, app does NOT crash anymore

imho behaviour shall be the same as with Free ratio - once you enter oversize value, force change it to image max value