Image is resized even when hitting ESC

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

Moderators: helmut, XnTriq, xnview, Dreamer

Post Reply
rotbus19
Posts: 81
Joined: Sat Feb 17, 2024 11:47 am

Image is resized even when hitting ESC

Post by rotbus19 »

I just tested resizing an image and then hit ESC. I expected the resize to be discarded but instead the file was saved.

I would expect ESC to discard any change - or at least offer a confirmation before overwriting a file.
User avatar
xnview
Author of XnView
Posts: 46236
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Image is resized even when hitting ESC

Post by xnview »

Image resize dialog?
Pierre.
rotbus19
Posts: 81
Joined: Sat Feb 17, 2024 11:47 am

Re: Image is resized even when hitting ESC

Post by rotbus19 »

Screenshot 2024-03-18 074552.png
rotbus19
Posts: 81
Joined: Sat Feb 17, 2024 11:47 am

Re: Image is resized even when hitting ESC

Post by rotbus19 »

I just tried again and it's not saving now. Let me quickly play some more....
rotbus19
Posts: 81
Joined: Sat Feb 17, 2024 11:47 am

Re: Image is resized even when hitting ESC

Post by rotbus19 »

No, I'm still seeing the issue.

1. open Resize dialog
2. select a preset or manually resize image
3. OK
4. ESC
5. result = image has overwritten the original and changed size

6. expected result - original image is not overwritten
User avatar
user0
XnThusiast
Posts: 2414
Joined: Sat May 09, 2015 9:37 am

Re: Image is resized even when hitting ESC

Post by user0 »

this is not resize issue

after step 3 - image is dirty (*)
after step 4 - save dialog should appear

if there is no save dialog - you have done 2 things in the past:
- checked "Don't ask again" in "Save Session" dialog and pressed Yes
- checked "Don't ask again" in "Save changed file" dialog and pressed Save

change "Save session on program exit" to Never (Settings > General)
Last edited by user0 on Mon Mar 18, 2024 5:27 pm, edited 1 time in total.
rotbus19
Posts: 81
Joined: Sat Feb 17, 2024 11:47 am

Re: Image is resized even when hitting ESC

Post by rotbus19 »

@user0 - thanks, "Save session on program exit" was set to Never but switching to 'Ask' made no difference.

So, I 'Reset all confirm prompts' and that then brings up a prompt for the Resize.

However, I definitely do not want to be prompted every time I hit CTRL+S - but I do want to be prompted if I hit ESC (which would be consistent with every (?) other Windows program).

@xnview - could this be tweaked some how? Thanks.
User avatar
user0
XnThusiast
Posts: 2414
Joined: Sat May 09, 2015 9:37 am

Re: Image is resized even when hitting ESC

Post by user0 »

no changes required, it already works as you described
it's not "Save" Ctrl+S, but "Save changed file" dialog that appears when you close tab/goto another file
rotbus19
Posts: 81
Joined: Sat Feb 17, 2024 11:47 am

Re: Image is resized even when hitting ESC

Post by rotbus19 »

@user0 - did you read what I wrote? "I definitely do not want to be prompted every time I hit CTRL+S - but I do want to be prompted if I hit ESC" - consistent with every other Windows program.
User avatar
user0
XnThusiast
Posts: 2414
Joined: Sat May 09, 2015 9:37 am

Re: Image is resized even when hitting ESC

Post by user0 »

what exactly are you prompted every time when pressing Ctrl+S?
post screenshot here
Post Reply