Page MenuHomePhabricator

Default File format is not .nrrd
Closed, ResolvedPublic

Description

If a image is saved (for example pic3d.nrrd) and no extension is specified in the file saving dialog, the image is saved as stack of bmp images. This is weird and unexpected.

Using windows the behavior is as expected: The image is saved as .nrrd if not specified otherwise. We should make sure that the same happens if Linux is used.

Event Timeline

The bug is in QmitkIOUtil::GefFileNameWithQDialog.

It seems as if QFileDialog returns different file names depending if operating on windows or linux. On windows it returns a filename which contains always an extension. On linux not.

New remote branch pushed: bug-16202-CorrectedAutoFileExtension

This did work in the 2013.06 release. The reason that it doesn't work any more is the fact that when saving images, all possible extensions are squashed into one entry for the file extensions list in the Qt save file dialog (with *.bmp being the first entry).

I suggest to discard the current fix and return a proper extension list in mitk::ImageWriter instead.

New remote branch pushed: bug-16202-fix-save-file-extension-list-for-images

[9fac40]: Merge branch 'bug-16202-fix-save-file-extension-list-for-images'

Merged commits:

2013-10-01 19:51:55 Sascha Zelzer [47cb9e]
Added missing separators in file extension list.


2013-10-01 19:29:43 Sascha Zelzer [3cbd5b]
Returning a list of extensions and putting nrrd in front of the list.

This shows a list of types in the file save dialog (like in the
2013.06 release) and uses nrrd as the default entry and extension if
no entry is specified in the file name.