Author Topic: "Save As" overwrote my active XISF image file  (Read 1610 times)

Offline ezwheeler

  • Newcomer
  • Posts: 3
"Save As" overwrote my active XISF image file
« on: 2019 November 29 14:00:27 »
I am on MacOSX 10.13.6 running PI 1.8.8-1.

Last night my "save as" a TIFF overwrote my XISF image file with TIFF, instead of saving as a TIFF copy. I lost all progress after my last save project and obviously all of my masks were incompatible. I did not get a warning at all. When I select save as, I can rename the file, change the format and location, but once I do this it overwrites the open image that I am working on. Last night I was working on an XISF file and then wanted to bring the file into Affinity photo for resizing and such so I can upload it to A-Bin. So I did a "save as" a TIFF and then, the active file in PI was overwritten as a TIFF and could not be undone. All of my masks were rendered useless, so I had to restart the program from the last saved "project file"

Is this a bug? Or what am I doing wrong? A work around is to make a clone of the current XISF file then do a "Save As" on this one, but this seems to be a kludge.


Offline pfile

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 4729
Re: "Save As" overwrote my active XISF image file
« Reply #1 on: 2019 November 29 15:34:32 »
are you not using any filename suffixes such as ".tiff" or ".xisf"? i just opened a file called xxxx.fit and then did a save-as and changed the file type in the drop down to xisf and hit save, and i got xxxx.xisf on disk. nothing was overwritten...

rob

Offline ezwheeler

  • Newcomer
  • Posts: 3
Re: "Save As" overwrote my active XISF image file
« Reply #2 on: 2019 November 29 17:08:39 »
On mac, I just select the file type from the drop down menu. I don't add extensions manually if that is what you are asking. In this example I did a save as a TIFF and hit enter/return, then selected 16bit (think that was option) then hit return/enter. It immediately changed the file name extension I was working on from XISF to TIFF. I didn't think anything of it at the time and then this morning I wanted to do more work on the stars and tried to apply my star mask. Incompatible file type message. I tried to revert or undo the file type and even redid a save as. This time I selected XISF, but the data was lost and the masks and other processes were lost as well.  :sad:

Offline pfile

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 4729
Re: "Save As" overwrote my active XISF image file
« Reply #3 on: 2019 November 29 20:12:39 »
hm, well i am using a mac too and have never had this problem. but i wonder if macos just goes ahead and does not add filename extensions if the file didn't have one in the first place for whatever reason. meaning if a jpg file is called "foo" (no .jpg) then if you save it as tiff it gets saved as "foo" since there's no extension to change.

i've never added extensions, at least not consciously, but somehow the files always have extensions, and changing the file type in the save as... dialog causes the file to get a new filename. so nothing is ever overwritten.

anyway i wonder why you are saving individual files, etc. we used to have to do that before there was such a thing as a PI project. but now that projects exist, i've never had the occasion to save any intermediate image. the only things i save are images that need to be read from disk by some process (like gradientsmergemosaic or hdrcomposition) or my final image that i'm going to upload somewhere.

rob

Offline ezwheeler

  • Newcomer
  • Posts: 3
Re: "Save As" overwrote my active XISF image file
« Reply #4 on: 2019 November 29 22:40:08 »
I must have done something wrong. I can not get it to repeat it self.

So do you "save project" every time you save your progress? Or do you save project once and then only "save" to update the project?

Offline pfile

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 4729
Re: "Save As" overwrote my active XISF image file
« Reply #5 on: 2019 November 30 09:34:50 »
i save my project periodically... whenever i've done a bunch of work that would be a hassle to re-do i usually save.

rob



Offline Juan Conejero

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 7111
    • http://pixinsight.com/
Re: "Save As" overwrote my active XISF image file
« Reply #6 on: 2019 December 03 08:58:53 »
We cannot reproduce this. Nothing similar has been reported before as far as I know. Can you provide a pattern or a data set where we can reproduce this behavior?
Juan Conejero
PixInsight Development Team
http://pixinsight.com/