Save as... keeps old file open (acts as Save copy...)

Reported bugs that have been closed and/or resolved

Moderators: helmut, XnTriq, xnview, Dreamer

Post Reply
geoffm
Posts: 15
Joined: Fri Nov 06, 2015 6:54 pm

Save as... keeps old file open (acts as Save copy...)

Post by geoffm »

When doing a Save as, after the save, the original file is still opened and the new file is not open. This is counterintuitive and dangerous because then it is likely we overwrite our original picture, thinking we're working on the copy.

This happens even though the "Use output filename after Save as" option is enabled.
geoffm
Posts: 15
Joined: Fri Nov 06, 2015 6:54 pm

Re: Save as... keeps old file open (acts as Save copy...)

Post by geoffm »

I lost a photo today because of this bug.
I cropped a photo and, because I didn't want to alter the original file, save it under a new file right after I cropped and then I proceded to do further modifications and I used Ctrl S intending to save my copy.
It overwrote the original file.
This is maddening, I don't understand how I'm the only one annoyed by this, why on earth would anyone want to stick with the original file once we forked it ?
I will pay $$$ for someone to fix this bug it's a liability to my work

My settings are
[  ] Save as copy for 'Save' action
[X] For 'Save as', use original pathname
[X] For 'Save as', use oiriginal format
[X] Use output filename after 'Save as'
User avatar
user0
XnThusiast
Posts: 2411
Joined: Sat May 09, 2015 9:37 am

Re: Save as... keeps old file open (acts as Save copy...)

Post by user0 »

there is only one solution
user0 wrote: Wed Jun 07, 2023 7:24 pm Suggestion
saving behavior should be reworked to the standard one:
  • rework Save as... (Ctrl+Shift+S) command
    when image saved via this command - Viewer tab should switch to new image/file
  • add new "Save a Copy..." (Ctrl+Alt+S) command
    when image saved via this command - Viewer tab should remain currently opened image/file
  • remove "Use output filename after 'Save as'" (Settings > File operations)
    since it's no longer required
User avatar
xnview
Author of XnView
Posts: 46235
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Save as... keeps old file open (acts as Save copy...)

Post by xnview »

i can't reproduce if 'Use output filename after 'Save as'' is enabled.
- open an image file (file1.jpg)
- save as (file2.jpg)
- crop
- save, file2.jpg is overwritten not file1.jpg
Pierre.
User avatar
user0
XnThusiast
Posts: 2411
Joined: Sat May 09, 2015 9:37 am

Re: Save as... keeps old file open (acts as Save copy...)

Post by user0 »

xnview wrote: Mon Aug 05, 2024 12:04 pm i can't reproduce if 'Use output filename after 'Save as'' is enabled.
- open an image file (file1.jpg)
- save as (file2.jpg)
- crop
- save, file2.jpg is overwritten not file1.jpg
try to save file2 in different folder

but the issue is - there should be no functionality to alter "Save as" behavior, period :D
no need to reinvent the wheel, there are 2 standard commands:
  • Save as...
    original closed unsaved, new file created and opened
  • Save a Copy...
    original remain open and not saved, new file created (and not opened)
User avatar
xnview
Author of XnView
Posts: 46235
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Save as... keeps old file open (acts as Save copy...)

Post by xnview »

user0 wrote: Mon Aug 05, 2024 2:37 pm but the issue is - there should be no functionality to alter "Save as" behavior, period :D
no need to reinvent the wheel, there are 2 standard commands:
and remove the 'Use output filename after 'Save as''' setting?
Pierre.
User avatar
user0
XnThusiast
Posts: 2411
Joined: Sat May 09, 2015 9:37 am

Re: Save as... keeps old file open (acts as Save copy...)

Post by user0 »

xnview wrote: Mon Aug 05, 2024 2:43 pm
user0 wrote: Mon Aug 05, 2024 2:37 pm but the issue is - there should be no functionality to alter "Save as" behavior, period :D
no need to reinvent the wheel, there are 2 standard commands:
and remove the 'Use output filename after 'Save as''' setting?
right, 'Use output filename after 'Save as''' should be removed
User avatar
xnview
Author of XnView
Posts: 46235
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Save as... keeps old file open (acts as Save copy...)

Post by xnview »

:bugconfirmed: Thanks to your detailed description I can reproduce the problem.
Pierre.
User avatar
xnview
Author of XnView
Posts: 46235
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Save as... keeps old file open (acts as Save copy...)

Post by xnview »

This problem is supposed to be fixed in XnView MP 1.8.0. Please check and confirm the bug fix here.
Pierre.
User avatar
user0
XnThusiast
Posts: 2411
Joined: Sat May 09, 2015 9:37 am

Re: Save as... keeps old file open (acts as Save copy...)

Post by user0 »

done in 180
Post Reply