Public bug reported:

Binary package hint: eog

Eye of gnome fails to open a jpg image file, if file-extension is .png,
failing with the following non-friendly error-message:

"Could not load image 'image.png'
Fatal error reading PNG image file: Not a PNG file"

However, EOG has no problems opening the file if the file-extension is
completely removed. This inconsistent behaviour should be fixed, and
from a users point of view I would say the best solution is to simply
open the file as any other file, possibly with a message to the user
that the file-extension on the file is wrong (maybe even suggest to
change the file extension to the correct one). In previous versions
ubuntu/gnome has been good at ignoring file extensions and checking file
content to determine what sort of file it is.

To reproduce error: 
- rename a jpg-file, image.jpg to image.png
- Browse to the file-location in nautilus (nautilus will correctly display a 
miniature of the file, regardless of file extension, if miniatures are enabled )
- in nautilus: double click the file, or right-click and select "Open with 
image viewer"
- or in a terminal, type: eog /path/to/image.png

Platform: 
Description:    Ubuntu 10.04.1 LTS
Release:        10.04
Package: 
Installed: 2.30.0-0ubuntu1

regards Jonas

** Affects: eog (Ubuntu)
     Importance: Undecided
         Status: New

-- 
eye of gnome cannot open image file with wrong extension
https://bugs.launchpad.net/bugs/632362
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to eog in ubuntu.

-- 
desktop-bugs mailing list
desktop-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs

Reply via email to