GNOME Bugzilla – Bug 785976
Provide non-cryptic error when trying to open a file with .JPEG ending which is actually a PNG file
Last modified: 2017-09-19 12:30:58 UTC
Created attachment 357163 [details] Sample image that will not open in eog 3.24 Could not load image "itwillnotopenineog.jpg" Error interpreting JPEG image file (Not a JPEG file: starts with 0x89 0x50) It will open in "feh" app, but on eog 3.24.0 appears errors. Example of image is in attachment. Note. Image is insider .tar and opening in vim show's PNG with Adobe saved.
Because it is not a JPEG file. It is a PNG file. See its first bytes. Rename it from .jpg to .png and it will open. Closing task as invalid.
Okay, it will open if i renamed. That's ok. But how I know on which file system should I rename? Gnome says Not a JPEG file: starts with 0x89 0x50 Should be: Not a JPEG file: starts with 0x89 0x50 Try rename a JPEG extenesion to PNG (suggested by 0x89/0x50). Button [Rename It] [Open It as extension PNG] It will be more easy by user and it should be by mime type converted and opened not by extension.
(In reply to Marin Sagovac from comment #2) > Gnome says Not a JPEG file: starts with 0x89 0x50 > > Should be: > > Not a JPEG file: starts with 0x89 0x50 > Try rename a JPEG extenesion to PNG (suggested by 0x89/0x50). Button [Rename > It] [Open It as extension PNG] Well, this assumes eog knows that it is a PNG which would render the whole error message moot since it could then just open the file using the correct decompressor. > It will be more easy by user and it should be by mime type converted and > opened not by extension. Mime sniffing is a bit of a long-standing issue -> bug 490067 *** This bug has been marked as a duplicate of bug 490067 ***