Author Topic: Incorrect Defaults File Name Extension in Save As... dialog  (Read 5979 times)

Offline Yuriy Toropin

  • PixInsight Addict
  • ***
  • Posts: 209
[Probably, duplication, I'm pretty sure this issue was reported earlier]
PI 1.05.06.0525 eng (x86)
File -> Save As... dialog
When desired format of file is changed via Save as type: dropdown list, say, from default FITS (*.fit) to TIFF (*.tif or *.tiff) File name  field will stay unchanged  (for ex., m45.fit) instead of been changed to m45.tif.

IMHO, in general case it's incorrect behavior, file name extension should be hidden and assigned automatically in a way to match selected format, or extension of file name should be changed automatically on format change.

Really boring thing...  :sad:
« Last Edit: 2009 October 08 03:01:30 by Yuriy Toropin »

Offline Juan Conejero

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 7111
    • http://pixinsight.com/
Re: Incorrect Defaults File Name Extension in Save As... dialog
« Reply #1 on: 2009 October 08 03:28:24 »
Hi Yuriy,

This is a Windows-specific problem that was already fixed in PI 1.5.6. You have two options:

1- Disable the "hide extensions for known file types" option in Windows Explorer. Then you'll have no problems with Windows native file dialogs; all file extensions will always be selected correctly. Unfortunately, the (useless, dangerous) "hide extensions" option is enabled by default on Windows.

2- Use multiplatform file dialogs, which work flawlessly on all platforms. To enable them, select Edit > Global Preferences > File I/O Settings and disable the "Use native file dialogs" option.

If you prefer Windows native dialogs (they are slightly more handy to find network folders), then option 1 is highly recommended (not only to work with PixInsight). To disable the hide extensions option, open a Windows Explorer window and click the "Organize" button (or select Tools > Folder Options if you have the explorer menu enabled), then select the "Show" tab (the second tab), look for the infamous "hide extensions" option, and disable it.

Note that when you don't follow (1), i.e. when you have the "hide extensions" option in its default enabled state, you --or Windows-- can select a file format that doesn't match the selected (or current) file extension. This is because Windows hides extensions both to the user and to applications. In this case PixInsight has no way to know if it was you who specified a nonstandard file extension, or if it was Windows. Take into account that native Windows dialogs are part of the operating system and PixInsight has no way to know what happens in them until you select a file name or cancel the dialog. When the reported file extension and file type don't match, PixInsight opens a dialog box to ask you for confirmation, or to replace your (or Windows') file extension with a standard one. In PixInsight 1.5.8, this dialog box has an "Always use standard file extensions" check box that allows you to fix these situations automatically.

However, of course the best option is (1) above. There is no reason, to my knowledge and understanding, to hide file extensions. IMO, it is absurd to hide such critical information about files, and it does not help novice Windows users but gives them the false impression that files have names that they actually don't.
Juan Conejero
PixInsight Development Team
http://pixinsight.com/

Offline Yuriy Toropin

  • PixInsight Addict
  • ***
  • Posts: 209
Re: Incorrect Defaults File Name Extension in Save As... dialog
« Reply #2 on: 2009 October 08 03:45:39 »
Hi Juan,
Thanks a lot for quick response!
Unfortunately, something wrong here.
I have ver.1.5.6 installed.
I have disabled "Hide extensions for known file type" in windows explorer
I have enabled "Use native file dialogs" in PI
(see screenshot).

So - I already have configuration recommended by you and it doesn't work for some reasons...
What else can I do to help diagnose it?

Regards,
   Yuriy

Offline Carlos Milovic

  • PTeam Member
  • PixInsight Jedi Master
  • ******
  • Posts: 2172
  • Join the dark side... we have cookies
    • http://www.astrophoto.cl
Re: Incorrect Defaults File Name Extension in Save As... dialog
« Reply #3 on: 2009 October 08 03:58:42 »
Hi Yurui

"Disable" the native file dialogs ;)
Regards,

Carlos Milovic F.
--------------------------------
PixInsight Project Developer
http://www.pixinsight.com

Offline Juan Conejero

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 7111
    • http://pixinsight.com/
Re: Incorrect Defaults File Name Extension in Save As... dialog
« Reply #4 on: 2009 October 08 04:12:16 »
Alas!!! I haven't seen this before. Here is a similar screenshot with Vista, and everything works as expected:



It's in Spanish but I think it's clear enough. File extensions are always correctly selected.

Somebody can report a similar behavior on Windows XP?

The only way I can fix this issue is to install XP on a virtual machine. I can't do that right now though, because it's time-consuming and I have a mountain of priority tasks at this moment. But be sure we'll spot on and fix this.

Thanks for reporting, and sorry for the inconveniences. As Carlos has just pointed out, you can use option 2: disable native Windows dialogs!
Juan Conejero
PixInsight Development Team
http://pixinsight.com/

Offline Yuriy Toropin

  • PixInsight Addict
  • ***
  • Posts: 209
Re: Incorrect Defaults File Name Extension in Save As... dialog
« Reply #5 on: 2009 October 08 05:00:22 »
As Carlos has just pointed out, you can use option 2: disable native Windows dialogs!

Carlos, Juan,
thanks for suggested workaround, with disables native Windows dialogs it works as expected!

Nonetheless, the problem exists with native dialogs under Win XP Prof SP3.