1.3 - image resize - last used preset decrease resample values

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

Moderators: helmut, XnTriq, xnview, Dreamer

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

1.3 - image resize - last used preset decrease resample values

Post by user0 »

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

Image Resize dialog resets its state to <Last Used> preset if Load 'Default values' checkbox is unticked (by default).
That cause:
Main issue of this bugreport
1) Resample width/height values decrease on each new file open iteration until it reaches 1 or 0 pixels.
Next 2 issues reported separately as they are not essential for this bugreport.
2) Resample width/height starts with hardcoded 800x800 pixels.
3) Print size values are not correct and do not change at all.
(test files and video attached in zip)
resize_image_last_used_preset.zip
(1.89 MiB) Downloaded 48 times

To reproduce:
1. run clean portable XnViewMP
2. place any 2 or more images in folder
3. open any of them
4. press SHIFT+S to open Image Resize dialog
4.1 if not 1st initial program run - set <Default> preset, it will be reset to <Last Used> and cause the same issue
5. press ESC to close Image Resize dialog
6. goto next (or previous) image via mouse scroll (or keyboard)
7. repeat steps 4-6 – on each iteration Resample width/height values decrease until it reaches 1 or 0.
resize_image_last_used_preset.jpg

Actual behaviour:
- Resample width/height values decrease until it reaches 1 or 0.
- Resample width/height values are not correct on the 1st run
- Print size values are not correct and do not change

Expected behaviour:
- Resample width/height values do not decrease when <Last Used> preset selected, just pasted as is.
- Resample width/height values shall be <Default> on the 1st run
- Print size values shall change accordingly

Suggestion:
1. Load 'Default values' checkbox shall be ticked by default.
2. If user manually untick it, only then program shall use values from previous resizing (maybe only successful resizing, when OK clicked).
Also program shall not modify values of previous resizing, just paste them as is.
Last edited by user0 on Wed Nov 30, 2022 8:17 am, edited 5 times in total.
User avatar
xnview
Author of XnView
Posts: 46235
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: 1.3 BUG - UI - image resize dialog - last used preset decrease resample values

Post by xnview »

it's depend on the image used, when you open the resize dialog image size is recomputed to follow ratio
Pierre.
User avatar
user0
XnThusiast
Posts: 2414
Joined: Sat May 09, 2015 9:37 am

Re: 1.3 BUG - UI - image resize dialog - last used preset decrease resample values

Post by user0 »

xnview wrote: Mon Oct 03, 2022 11:12 am it's depend on the image used, when you open the resize dialog image size is recomputed to follow ratio
please check attached video (in .zip archive)
Post Reply