Bug 143955 - images without filename extension are inaccessible
Summary: images without filename extension are inaccessible
Status: RESOLVED INTENTIONAL
Alias: None
Product: digikam
Classification: Applications
Component: Showfoto-Directory (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-04-08 13:03 UTC by Falk Krönert
Modified: 2022-02-05 04:45 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In: 0.10.0


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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