eog determines image type from filename

Bug #172416 reported by Dmitriy Geels on 2007-11-27
This bug affects 33 people
Affects Status Importance Assigned to Milestone
Eye of GNOME
eog (Ubuntu)

Bug Description

Binary package hint: eog

take any image file, e.g. of type image/jpeg, name it 'image.gif' or 'image.tif' -- eog will assume that image type is gif or tiff.
then it will complain, that image is not gif/tiff.

but correct behavior is possible: name file 'image' and open it -- eog will determine correct image type.

ProblemType: Bug
Architecture: i386
Date: Tue Nov 27 23:28:28 2007
DistroRelease: Ubuntu 7.10
ExecutablePath: /usr/bin/eog
NonfreeKernelModules: nvidia
Package: eog 2.20.1-0ubuntu1
PackageArchitecture: i386
ProcCmdline: eog file:///home/dmig/Amiga%20Collection/PHOTO/A4000T/a4000t_1.gif
ProcCwd: /home/dmig
SourcePackage: eog
Uname: Linux dmig-desktop 2.6.22-14-generic #1 SMP Sun Oct 14 23:05:12 GMT 2007 i686 GNU/Linux

Dmitriy Geels (dmig) wrote :
Basilio Kublik (sourcercito) wrote :

Thank you for your bug report. This bug has already been reported to the developers of the software. You can track it and make comments here: http://bugzilla.gnome.org/show_bug.cgi?id=490067

Changed in eog:
assignee: nobody → desktop-bugs
importance: Undecided → Low
status: New → Triaged
Changed in eog:
status: Unknown → New
Changed in eog:
status: New → Confirmed
Ferk (ferkiwi) wrote :

I've been wanting this too.
It would be nice if the program alerted the user of the incorrect extension for the filename and suggested the automatic rename of it.

Ferk (ferkiwi) wrote :

By the way, this bug is from 2007.... any news on this?

I'm sure it wouldn't be so hard to change.. it already automatically detects the filetype when you open an image without extension.

Changed in eog:
importance: Unknown → Medium

Still the same on Natty. When I remember this correctly, the behaviour was another one some versions ago. It would be way better if eog would determite the file type not by the fileextension.

This is a really nasty bug, because there are often images on the web that don't have the correct extension. A user who don't knows about this would possibly delete such files because he thinks the file is corrupted.

Test this with this file:


B Bobo (yout-bobo123) wrote :

It's been 5 years and still no sign of this bug being fixed. The eog project looks nearly dead.
feh doesn't have this bug, is more featureful and runs much much faster than eog.
 $ apt-get install feh
 $ mv image.jpg image.gif
 $ feh -dZF image.gif

Procion (klebed) wrote :

But now ubuntu comes with shotwell in the the box. Shotwell do this in right way too.

B Bobo (yout-bobo123) wrote :

True, but if you want to view lots of images with a responsive user-interface, feh is more than 10 times faster than shotwell. If you start shotwell from the command-line with a large number of images as arguments, then type <Space> as fast as you can (or increase your keyboard's default autorepeat rate) to load the next image, shotwell takes about 1/3 second to move to the next image. With feh, it takes about 30 milliseconds.

Changed in eog (Ubuntu):
assignee: Ubuntu Desktop Bugs (desktop-bugs) → nobody

Scanning old print photos at my local Walgreens results in a CD with PNG files named with a .jpg extension, which triggers this bug.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.