GNOME Bugzilla – Bug 564817
Pictures not ending in ".jpg" are not imported
Last modified: 2008-12-18 07:12:35 UTC
Please describe the problem: My wife is starting to use F-Spot, and as many, she has a ton of pictures. Unfortunately, some of them have broken file names, like "picture0023jpg" instead of "picture0023.jpg". She is importing by using the plus in the toolbar and drag and drop. Both import mechanisms fail to import that picture. I totally understand why, but Nautilus happily recognizes it as a picture and shows the thumbnail, and my wife had absolutely no means to discover what the problem was. If it wasn't for me, she would have though that F-Spot didn't like some pictures. I think F-Spot would be much more usable if upon import it would check the mime-types and try to figure out whether it is a picture or not, not only based on the extension. Steps to reproduce: 1. Rename a JPEG file to something not ending in ".jpg" 2. Import it by any means. Actual results: The picture is not imported. Expected results: The picture to be imported. Does this happen every time? Yes, 100%. Other information:
a patch already exists since long time to use file magic to open images. sadly iirc it doesn't work on some raw files, so it was not included into main source. *** This bug has been marked as a duplicate of 326411 ***
Why not use file magic and if it fails, then, the current method?