Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Problem displaying JPG's and PNG's
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
m1ndctrl
n00b
n00b


Joined: 20 May 2005
Posts: 3
Location: GTA

PostPosted: Thu Sep 14, 2006 10:27 pm    Post subject: Problem displaying JPG's and PNG's Reply with quote

Okay so I did a fresh install of gentoo yesterday on a new home computer I built. All was going fine and well until I tried to set a new wallpaper in fluxbox. When using fbsetbg I get the following error:

Code:

m1ndctrl@m1ndbox ~ $ fbsetbg wallpapers/wp-dunhill-1440x900.jpg
Esetroot:  Unable to load image file "wallpapers/wp-dunhill-1440x900.jpg".
m1ndctrl@m1ndbox ~ $ /usr/bin/fbsetbg: line 169: xmessage: command not found


Okay so no big deal, I try it with feh:

Code:

m1ndctrl@m1ndbox ~ $ feh wallpapers/wp-dunhill-1440x900.jpg
feh WARNING: wallpapers/wp-dunhill-1440x900.jpg - No Imlib2 loader for that file format
feh - No loadable images specified.
Use feh --help for detailed usage information
m1ndctrl@m1ndbox ~ $     


imlib2 and Image-Imlib2 are both emerged.

Furthermore, when using pornview or any other image viewer (xv, etc) I can not see nor open JPEG and PNG files.

I tried emerging the JPEG lib but that did not seem to help.

Can anyone offer me some advice please? I've never had a problem like this and it seems really weird that it would happen.

Oh and as an added bonus of confusion - all images work properly in firefox.
_________________
m1ndctrl
Back to top
View user's profile Send private message
Catch-22
Apprentice
Apprentice


Joined: 22 Oct 2004
Posts: 244

PostPosted: Fri Sep 15, 2006 1:40 am    Post subject: Reply with quote

can you please post the output of
Code:
emerge --info


off the top of my head there are png and jpeg USE flags. I'd suggest you need to enable them and then emerge -Nav world
Back to top
View user's profile Send private message
xante
Apprentice
Apprentice


Joined: 23 Aug 2004
Posts: 229

PostPosted: Tue Nov 07, 2006 1:54 am    Post subject: Reply with quote

Im having a very similar problem:
Code:
xante@xante ~ $ feh --bg-scale ~/personal/random/gentoo-water-1280x1024.jpg 
feh WARNING: /home/xante/personal/random/gentoo-water-1280x1024.jpg - No Imlib2 loader for that file format
feh ERROR: Couldn't load image in order to set bg
xante@xante ~ $


This just randomly died on my today, and now my theme is horrible to look at simply because its based on transparency and that particular background :(
Anyways, my emerge info:
Code:

xante@xante ~ $ emerge --info
Portage 2.1.1-r1 (default-linux/x86/2006.1, gcc-4.1.1, glibc-2.5-r0, 2.6.18-gent
oo-r1 i686)
=================================================================
System uname: 2.6.18-gentoo-r1 i686 Unknown CPU Typ
Gentoo Base System version 1.12.6
Last Sync: Mon, 06 Nov 2006 16:00:03 +0000
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: 1.3.7, 2.0.30
dev-lang/python:     2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.60
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.13-r4
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=athlon-xp -O2 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shu
tdown /usr/share/X11/xkb /usr/share/config /var/qmail/alias /var/qmail/control /
var/vpopmail/domains /var/vpopmail/etc"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms
/ /etc/revdep-rebuild /etc/splash /etc/terminfo"
CXXFLAGS="-march=athlon-xp -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig dislocks distlocks fixpackages metadata-transfer nodoc noin
fo sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/
distributions/gentoo"
LDFLAGS="-Wl,-O1 -Wl,--enable-new-dtags -Wl,--sort-common -Wl,-s"
LINGUAS="en"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress
--force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/d
istfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X aac acpi alsa apache2 avi berkdb bitmap-fonts branding cdparanoia cdr
 cli cracklib crypt cups dlloader dri dvd dvdr dvdread elibc_glibc encode fame f
lac fortran freetype gdbm gtk2 iconv imap imlib input_devices_evdev input_device
s_keyboard input_devices_mouse isdnlog jpeg kernel_linux libg++ linguas_en lm_se
nsors maildir mozilla mp3 mpeg mysql ncurses nls nptl nptlonly nsplugin offensiv
e ogg oggvorbis opengl pam pcre perl php png ppds pppd python readline reflectio
n samba session spl ssl subtitles tcpd truetype-fonts type1-fonts udev unicode u
sb userland_GNU video_cards_nv video_cards_nvidia video_cards_vesa vorbis win32c
odecs xml xorg zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_RSYNC_
EXTRA_OPTS, PORTDIR_OVERLAY

xante@xante ~ $


I have reemerged multiple things and am currently running an emerge world. Will post results later.
Thank you for any advice.
Back to top
View user's profile Send private message
geniux
Veteran
Veteran


Joined: 19 Feb 2004
Posts: 1400
Location: /home

PostPosted: Tue Nov 07, 2006 1:59 am    Post subject: Reply with quote

You guys have to reemerge imlib2 with the jpeg and png flags set :wink:
Edit: Add it to /etc/portage/package.use though it seems like the none set flags aren't used even though they show up in the USE section with emerge --info
_________________
AMD Athlon64 X2 4200+ AM2
MSI K9N SLI Platinum, Enermax Liberty 500W
1GB RAM Crucial DDR2 667MHz, MSI nVidia 7600GS 256MB
400GB + 250GB Samsung SATAII HDD
Gentoo - BeyondSources 2.6.19-20
Back to top
View user's profile Send private message
xante
Apprentice
Apprentice


Joined: 23 Aug 2004
Posts: 229

PostPosted: Tue Nov 07, 2006 2:20 am    Post subject: Reply with quote

It appears that it is accepting my use flags:
Code:
xante@xante ~ $ emerge -pv imlib2

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ] media-libs/imlib2-1.3.0  USE="X jpeg mp3 nls png zlib -bzip2 -doc -gif -mmx -tiff" 0 kB

Total size of downloads: 0 kB
xante@xante ~ $

But I shall try your suggestion none the less.
Back to top
View user's profile Send private message
xante
Apprentice
Apprentice


Joined: 23 Aug 2004
Posts: 229

PostPosted: Tue Nov 07, 2006 2:24 am    Post subject: Reply with quote

Thank you very much, that seemed to fix it. I dont understand why my global flags were not being recognized though? :S
Back to top
View user's profile Send private message
geniux
Veteran
Veteran


Joined: 19 Feb 2004
Posts: 1400
Location: /home

PostPosted: Tue Nov 07, 2006 2:30 am    Post subject: Reply with quote

xante wrote:
Thank you very much, that seemed to fix it. I dont understand why my global flags were not being recognized though? :S

Glad I could help :)
It seems to be baselayout related, but I'm not sure. After an update I had to set almost every use flag to package.use or system wide in make.conf which works like it want's to sometimes
_________________
AMD Athlon64 X2 4200+ AM2
MSI K9N SLI Platinum, Enermax Liberty 500W
1GB RAM Crucial DDR2 667MHz, MSI nVidia 7600GS 256MB
400GB + 250GB Samsung SATAII HDD
Gentoo - BeyondSources 2.6.19-20
Back to top
View user's profile Send private message
hurra
Apprentice
Apprentice


Joined: 11 Apr 2004
Posts: 224

PostPosted: Tue Nov 14, 2006 9:23 am    Post subject: Reply with quote

Problem still exists here:
Code:
IMLIB ERROR: Cannot load image: /home/lolo/pics/ich.png
All fallbacks failed.
kuickshow: WARNING: ImlibWidget: can't load image file:///home/lolo/pics/ich.png


And also for some jpegs.

I reemerged imlib and imlib2.
Code:
lolo@hurra ~ % emerge imlib2 imlib -pv

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ] media-libs/imlib2-1.3.0  USE="X bzip2 gif jpeg mmx mp3 nls png tiff zlib -doc" 0 kB
[ebuild   R   ] media-libs/imlib-1.9.14-r3  0 kB


But still doesn't work. Anyone can help?

Cu hurra
Back to top
View user's profile Send private message
paulj
Guru
Guru


Joined: 30 Sep 2004
Posts: 513
Location: Wales, UK

PostPosted: Thu Nov 16, 2006 6:15 am    Post subject: Reply with quote

Change your profile to 2006.1/desktop and run
Code:

emerge -avuDN world

I have had this type of problem, and seen others with the same as a result of using the basic 2006.1 profile for desktop machines.

Have a look at https://forums.gentoo.org/viewtopic-t-497485-highlight-.html for more details
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments 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