Introduction to Gdk Pixbuf

The Gdk Pixbuf is a toolkit for image loading and pixel buffer manipulation. It is used by GTK+ 2 and GTK+ 3 to load and manipulate images. In the past it was distributed as part of GTK+ 2 but it was split off into a separate package in preparation for the change to GTK+ 3.

This package is known to build and work properly using an LFS-7.6 platform.

Package Information

Gdk Pixbuf Dependencies


GLib-2.40.0, libjpeg-turbo-1.3.1, libpng-1.6.13 and LibTIFF-4.0.3


Optional (Required if building GNOME)



JasPer-1.900.1 and GTK-Doc-1.20

User Notes:

Installation of Gdk Pixbuf

Install Gdk Pixbuf by running the following commands:

./configure --prefix=/usr --with-x11 &&

Now, as the root user:

make install

To test the results, issue: make check, after the package is installed.



If you installed the package on to your system using a “DESTDIR” method, an important file was not installed and should be copied and/or generated. Generate it using the following command as the root user:

gdk-pixbuf-query-loaders --update-cache

Command Explanations

--with-x11: This switch enables building of the Gdk Pixbuf X11 library which is needed for many packages.

--with-libjasper: If you've installed JasPer-1.900.1 and you want Gdk Pixbuf to use it to compile a JPEG2000 image loader, pass this switch to configure.

--enable-gtk-doc: Use this parameter if GTK-Doc is installed and you wish to rebuild and install the API documentation.


Installed Programs: gdk-pixbuf-csource, gdk-pixbuf-pixdata, and gdk-pixbuf-query-loaders
Installed Libraries:,, and several loaders for specific image formats under /usr/lib/gdk-pixbuf-2.0/2.10.0/loaders
Installed Directories: /usr/include/gdk-pixbuf-2.0, /usr/lib/gdk-pixbuf-2.0, and /usr/share/gtk-doc/html/gdk-pixbuf

Short Descriptions


is a small utility that generates C code containing images, used for compiling images directly into programs.


collects information about loadable modules for Gdk Pixbuf and writes it to the default cache file location, or to stdout.

contains functions used to load and render images.

contains functions used to manipulate images and interfaces with Xlib.

Last updated on 2014-09-10 09:45:01 -0700