xloadimage has three USE flags tiff,jpeg,png. However, with USE="png" set the binary still doesn't have PNG support. $ emerge -vp xloadimage [ebuild R ] media-gfx/xloadimage-4.1-r1 +jpeg +png +tiff $ xloadimage -supported Type Name Can Dump Description ---------- -------- ----------- niff Yes Native Image File Format (NIFF) sunraster No Sun Rasterfile gif No GIF Image jpeg Yes JFIF-style JPEG Image tiff Yes TIFF image png No PNG image fbm No FBM Image cmuraster No CMU WM Raster pbm Yes Portable Bit Map (PBM, PGM, PPM) faces No Faces Project rle No Utah RLE Image xwd No X Window Dump vff No Sun Visualization File Format mcidas No McIDAS areafile vicar No VICAR Image pcx No PC Paintbrush Image gem No GEM Bit Image macpaint No MacPaint Image xpm No X Pixmap xbm No X Bitmap It should also be noted that X[pb]m should be supported as well. Not sure why there are so many unsupported formats. Portage 2.0.50-r3 (default-x86-1.4, gcc-3.3.2, glibc-2.3.2-r9, 2.6.3-gentoo-r1) ================================================================= System uname: 2.6.3-gentoo-r1 i686 Intel(R) Pentium(R) 4 CPU 2.66GHz Gentoo Base System version 1.4.3.13 Autoconf: sys-devel/autoconf-2.58-r1 Automake: sys-devel/automake-1.8.3 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-O2 -march=pentium4 -funroll-loops -pipe" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.1/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc /etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -march=pentium4 -funroll-loops -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache fixpackages" GENTOO_MIRRORS="ftp://ibiblio.org/pub/Linux/distributions/gentoo/ http://www.gtlib.cc.gatech.edu/pub/gentoo rsync://cudlug.cudenver.edu/gentoo" MAKEOPTS="-j1" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X aalib alsa apm arts avi berkdb bonobo cdr crypt cups directfb encode esd evo foomaticdb gdbm gif gpm gtk gtk2 gtkhtml guile imlib java jpeg kde ldap libg++ libwww mad mikmod milter mmx motif mozilla mpeg mysql ncurses nls oggvorbis opengl oss pam pdflib perl png postgres python qt quicktime readline ruby samba sdl slang spell sse ssl svga tcpd tiff truetype x86 xinerama xml2 xmms xv zlib"
/* void pngDump(Image *image, char *options, char *file, int verbose); */ * TODO: * pngLoad(): Alpha channel, Transparency palette. * pngDump(): Dump. */ Appears that the code for most of them are not finished. :-/