After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 564817 - Pictures not ending in ".jpg" are not imported
Pictures not ending in ".jpg" are not imported
Status: RESOLVED DUPLICATE of bug 326411
Product: f-spot
Classification: Other
Component: Import
0.5.x
Other All
: Normal normal
: ---
Assigned To: F-spot maintainers
F-spot maintainers
Depends on:
Blocks:
 
 
Reported: 2008-12-17 07:12 UTC by Pupeno
Modified: 2008-12-18 07:12 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Pupeno 2008-12-17 07:12:33 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:
Comment 1 Maxxer 2008-12-17 08:47:43 UTC
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 ***
Comment 2 Pupeno 2008-12-18 07:12:35 UTC
Why not use file magic and if it fails, then, the current method?