Bug 143955

Summary: images without filename extension are inaccessible
Product: [Applications] digikam Reporter: Falk Krönert <FalkKroenert>
Component: Showfoto-DirectoryAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED INTENTIONAL    
Severity: normal CC: caulier.gilles
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In: 0.10.0

Description Falk Krönert 2007-04-08 13:03:32 UTC
Version:           0.5.0 (using KDE 3.5.6 "release 64.1" , openSUSE )
Compiler:          Target: i586-suse-linux
OS:                Linux (i686) release 2.6.18.8-0.1-default

Except when starting it from a shell or the kde run dialog, ShowFoto is unable to handle images whose filenames do not have an extension or an unknown one (like "image.2007-03-14" etc.) or folders of (only) such files. The other way round it gets into trouble, when files are named "transform.jpeg" or "pics.png" but are shell scripts or xml respectively.
Konqueror or Krusader don't have this problem, so I guess it's a missing mimetype detection somewhere in ShowFoto, so the filename extension overrides the real type.
Comment 1 caulier.gilles 2009-02-06 13:26:29 UTC
No, this is not possible to do especially with all RAW file like 80% of raw format are based on a derivated (and proprietary/unstandardized) TIFF/EP format.

If we parse file header to detect mime type, all RAW file will be loaded as TIFF and this will fails of course (this is how digiKam play with files in the pass - 0.8.x release)

Trying to make a RAW files header detection is out of box : there are more than 200 RAW file formats. We have no time to study structure for all these formats.

So, we use file extension. and it work perfectly in all case... Don't use file extension as your risk. It think it's a bad idea in general.

Gilles Caulier