Comment 10 for bug 350040

Revision history for this message
Aaron Edmistone (aaronedmistone) wrote :

Just made the leap to Linux with Ubuntu 18.04 and am experiencing this "bug" also.

My error was specifically as @cometdog mentioned with a BMP extension with a PNG file signature (and data).

I can think of a lot of ways an image would have an incorrect extension.
It would be great if eog could do one (or more) of the following:

1. Open the image with a list of known (popular) image file signatures if it finds 'bogus header data'.
2. Warn the user that the image has a mismatching file signature and extension and suggest a correction.

If both of the above are not possible (or painful to implement) then I suggest the following:

Show the file signature along with the 'bogus header data' error message as this would also immediately point to the issue without promising that is the solution.

e.g.
BMP image has bogus header data (file signature: ".PNG....")
or even a more details button that shows this info would suffice IMO.

(apologies if this is in the wrong place, I realize it is an old report but I made an account solely for this and this is where I found my solution via google).