media-gfx/gthumb-2.6.5 can show png and tiff images even without those USE flags enabled, but can't show jpeg images even if I enable the jpeg USE flag Reproducible: Always Steps to Reproduce: 1. USE="-*" emerge gthumb 2. USE="-* jpeg" emerge gthumb Actual Results: 1. it shows png and tiff images 2. it doesn't show jpeg images Expected Results: 1. USE="-*" emerge gthumb --> it shouldn't be able to show jpeg, tiff or png images 2. USE="-* jpeg" --> it should be able to show jpeg images Portage 2.0.51.22-r2 (default-linux/x86/2005.1, gcc-3.4.4, glibc-2.3.5-r1, 2.6.12-gentoo-r6 i686) ================================================================= System uname: 2.6.12-gentoo-r6 i686 AMD Sempron(tm) 2600+ Gentoo Base System version 1.12.0_pre6 ccache version 2.4 [disabled] dev-lang/python: 2.4.1-r1 sys-apps/sandbox: 1.2.12 sys-devel/autoconf: 2.13, 2.59-r7 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6 sys-devel/binutils: 2.16.1 sys-devel/libtool: 1.5.18-r1 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-Os -march=athlon-xp -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/splash /etc/terminfo /etc/env.d" CXXFLAGS="-Os -march=athlon-xp -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks sandbox sfperms strict" GENTOO_MIRRORS="http://www.die.unipd.it/pub/Linux/distributions/gentoo-sources/ ftp://ftp.unina.it/pub/linux/distributions/gentoo http://mirror.switch.ch/ftp/mirror/gentoo/ ftp://mirror.switch.ch/mirror/gentoo/ ftp://ftp.solnet.ch/mirror/Gentoo http://gentoo.mirror.solnet.ch" LC_ALL="it_IT.UTF-8" LINGUAS="it" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage /usr/local/bmg-main /usr/local/gentoo-de" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 3dnow 3dnowext alsa bash-completion cjk cups minimal mmx mmxext nls nptl nptlonly nvidia ppds sse unicode linguas_it userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LANG, LDFLAGS
it seems you have to build gtk+ with the jpeg USE flag if you want to display those images with gthumb. no need to build gthumb with that USE. strange..
Not sure if gthumb is primarily using gdk-pixbuf image loading (my assumption) or it's own. I guess the optional support of these flags in gthumb is more about retrieving info that cannot be obtained via gdk-pixbuf, not a fallback image loading mechanism.
I think you're right here foser - gthumb uses gdk_pixbuf loaders and a packaged jpegutils library for extra data.
Added patch for options for jpeg, png, tiff, exif, gphoto2. Patched upstream as well.