GNOME Bugzilla – Bug 622147
Should switch to mime-type based image loading.
Last modified: 2010-07-08 18:04:17 UTC
I tried the following with both jpeg and png images. (1) Download a jpg or png image and open/import it to F-spot. It should work just fine, so far. Now exit F-spot. (2)Remove the extension(s) from your image file(s) (3)Now try to import/open the same file(s) to F-spot; it doesn't work. Expectation: Any file supported by F-Spot should open properly with regardless of whether it has a the proper file extension, no file extension, or a made-up file extension.
probably related to bug 342288.
It is probably similar to the other bug, however this one describes the bigger picture, the more general problem: F-spot should not pay attention to the extension of ANY file, but instead should look inside the file and figure out the type of file based on its contents and not its extension. Maybe you can look in the code of "Eye of Gnome" http://projects.gnome.org/eog/ and see how it's done there because that problem does not occur in EOG.
This will be switched when we switch to content-type detection for choosing the correct loader.
Created attachment 165499 [details] [review] Switch to mime-type based image loading. The mime type is now used for detecting how to load an image. A test to ensure that we load everything Taglib# supports is added.
Attachment 165499 [details] pushed as f680fd0 - Switch to mime-type based image loading.