Page 1 of 1

RC1: Can't open files in view as list mode (only my ini)

Posted: Thu Jan 12, 2006 12:48 pm
by ckv
Subject says it all. I can't open files in browser if the view as list is on. This doesn't occur with clean ini t and my ini is created byhe RC1, so this isn't ini incompatibility bug.

Get my ini: [EDIT]

Posted: Thu Jan 12, 2006 10:31 pm
by Xyzzy
Proper image files not recognized as image type in List mode despite Scan file headers in folders as Always.
Bug IMO.

X.

Re: RC1: Can't open files in view as list mode (only my ini)

Posted: Sat Jan 14, 2006 8:50 am
by ckit
ckv wrote:Subject says it all. I can't open files in browser if the view as list is on. This doesn't occur with clean ini t and my ini is created byhe RC1, so this isn't ini incompatibility bug.

Get my ini: xnview.ini
Confirmed.

Posted: Mon Jan 16, 2006 10:37 am
by xnview
Xyzzy wrote:Proper image files not recognized as image type in List mode despite Scan file headers in folders as Always.
Bug IMO.
Right, a bug. But if scan file headers is 'Never', do you think that this behaviour is normal? I don't know if it's a picture or not.

Posted: Mon Jan 16, 2006 11:23 am
by Xyzzy
xnview wrote:
Xyzzy wrote:Proper image files not recognized as image type in List mode despite Scan file headers in folders as Always.
Bug IMO.
Right, a bug. But if scan file headers is 'Never', do you think that this behaviour is normal? I don't know if it's a picture or not.
In Thumbnails and Details you know filetype anyway, because files were scanned for thumbnail creation /details display.
In List/Icon modes there is no need to scan image headers at all- what for? These modes are supposed to be speedy at first place. You use just extensions.

So actually two problems appear- 1. how to handle files that cannot be recognized by header (are there any?; Thumbnails and Details only) & and 2. files with wrong extensions (Icon/List).

My suggestions:
1. We already have option to open unknown files in XnView so nothing is needed for in Thumbnail/Details.
2. Introduce option like 'Try to define type based on header on Open in List/Icon mode for unknown file type' to handle bad extensions in List/Icon. This would attempt to define file type for unknown file when it is Opened.
3. Remove 'Recognize only by extension' & 'Scan file headers in folders'. I don't see use for them, maybe because I do not understand their purpose completely.

And to answer your question directly- if extension is OK, file should be Opened. If extension is bad, depends on setting from point 2 and action for Other files in Browser>Open action. If "option 2" is ON, file is displayed because it is recognized by header on Open. If "option 2" if OFF and Other files are Opened in XnView, I think file is displayed by XnView, because when handling Open action for Other filetype XnView tries to define its format any way it can (including headers scan).

EDIT: One more problem: what should happen when Opening, if file thumbnail/preview is not displayed because of Items displayed size limit?
I guess that file type should be recognized anyway- reading some bytes from beginning of file (and even from the end) is instant in comparison to thumbnail creation, so no big delay here.
Another solution: add options similar to "option 2" above, but referring to Thumbnail/Details view.

X.

Posted: Thu Jan 19, 2006 4:56 pm
by ckv
Seems to be fixed in RC2.