Introduction to Gdk Pixbuf

The Gdk Pixbuf package 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-10.1 platform.

Package Information

Gdk Pixbuf Dependencies


GLib-2.68.1, libjpeg-turbo-2.0.6, libpng-1.6.37, and shared-mime-info-2.1


Optional (Required if building GNOME)




User Notes:

Installation of Gdk Pixbuf

Install Gdk Pixbuf by running the following commands:

mkdir build &&
cd build &&

meson --prefix=/usr .. &&

To test the results, issue: ninja test. The tests make a heavy use of disk.

Now, as the root user:

ninja install


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

-Dgtk_doc=true: 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, gdk-pixbuf-query-loaders, and gdk-pixbuf-thumbnailer
Installed Libraries:
Installed Directories: /usr/{include,lib}/gdk-pixbuf-2.0, /usr/libexec/installed-tests/gdk-pixbuf, /usr/share/installed-tests/gdk-pixbuf, /usr/share/gtk-doc/html/gdk-pixbuf, and /usr/share/thumbnailers

Short Descriptions


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


is a tool used to convert GdkPixbuf to GdkPixdata


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


creates thumbnails of pictures for use in other applications

contains functions used to load and render images

Last updated on 2021-04-02 21:53:04 -0500