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 785976 - Provide non-cryptic error when trying to open a file with .JPEG ending which is actually a PNG file
Provide non-cryptic error when trying to open a file with .JPEG ending which ...
Status: RESOLVED DUPLICATE of bug 490067
Product: eog
Classification: Core
Component: image viewer
3.24.x
Other Linux
: Normal enhancement
: ---
Assigned To: EOG Maintainers
EOG Maintainers
Depends on:
Blocks:
 
 
Reported: 2017-08-07 23:17 UTC by Marin Sagovac
Modified: 2017-09-19 12:30 UTC
See Also:
GNOME target: ---
GNOME version: 3.23/3.24


Attachments
Sample image that will not open in eog 3.24 (1.74 MB, application/x-tar)
2017-08-07 23:17 UTC, Marin Sagovac
Details

Description Marin Sagovac 2017-08-07 23:17:29 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.
Comment 1 André Klapper 2017-08-08 23:18:47 UTC
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.
Comment 2 Marin Sagovac 2017-08-09 03:14:15 UTC
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.
Comment 3 Felix Riemann 2017-09-19 12:30:58 UTC
(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 ***