Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Solved]Eog: Unrecognized image file format for jpeg
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
lospugs
n00b
n00b


Joined: 18 Jan 2008
Posts: 2

PostPosted: Fri Jan 18, 2008 12:28 pm    Post subject: [Solved]Eog: Unrecognized image file format for jpeg Reply with quote

I recently emerged eog with the jpeg use flag, but when I try to open a jpg file in the GUI it says "Unrecognized file format". The error is the same for .jpg, .JPG and .jpeg extensions. I have the jpeg library installed and the pictures open fine in GIMP and Firefox.

Code:
scottp@seahawks ~ $ file test.jpg
test.jpg: JPEG image data, EXIF standard 2.21
scottp@seahawks ~ $ equery l media-libs/jpeg
[ Searching for package 'jpeg' in 'media-libs' among: ]
 * installed packages
[I--] [  ] media-libs/jpeg-6b-r7 (0)
scottp@localhost ~ $ equery l media-libs/libexif
[ Searching for package 'libexif' in 'media-libs' among: ]
 * installed packages
[I--] [  ] media-libs/libexif-0.6.16-r1 (0)

When I try to open the file from the command line there isn't any output to the console, but in the gui says it's an "Unrecognized image file format".
I have run update-mime-database ~/.local/share/mime as restricted user, and update-mime-database /usr/share/mime as root. I don't really know what those commands are doing exactly but neither helped.
Code:
scottp@localhost ~ $ cat .local/share/mime/globs
# This file was automatically generated by the
# update-mime-database command. DO NOT EDIT!
application/x-extension-img2:*.img2


I did emerge -C jpeg and revdep-rebuild re-compiled 13 packages, including eog (firefox etc). But I still can't open any jpegs. :?:

Thanks,


Last edited by lospugs on Fri Jan 18, 2008 5:49 pm; edited 1 time in total
Back to top
View user's profile Send private message
Sadako
Advocate
Advocate


Joined: 05 Aug 2004
Posts: 3753
Location: sleeping in the bathtub

PostPosted: Fri Jan 18, 2008 3:43 pm    Post subject: Reply with quote

I've seen similar problems before, and the cause was the "/etc/gtk-2.0/gdk-pixbuf.loaders" file.

`grep -A 2 -B 4 -i jpg /etc/gtk-2.0/gdk-pixbuf.loaders` should return something like the following;
Code:
"/usr/lib/gtk-2.0/2.10.0/loaders/libpixbufloader-jpeg.so"
"jpeg" 5 "gtk20" "The JPEG image format"
"image/jpeg" ""
"jpeg" "jpe" "jpg" ""
"\377\330" "" 100


If it doesn't, try re-emerging gtk+, and run etc-update afterwards (and check the grep output again).

You did emerge gtk+ with jpeg in USE, right?
Both firefox and the gimp use their own image loaders, IIRC...
_________________
"You have to invite me in"
Back to top
View user's profile Send private message
lospugs
n00b
n00b


Joined: 18 Jan 2008
Posts: 2

PostPosted: Fri Jan 18, 2008 5:49 pm    Post subject: I did not in fact have jpeg for gtk+ Reply with quote

I just assumed that gimp et al were using the gtk+.

Recompiled GTK+ with jpeg and it works like a champ. Imagine that :)

Thanks for the help.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum