Gimp-20240711

#### Beyond Linux® From Scratch (systemd Edition) - Version 12.2

### Chapter 41. Other X-based Programs

- Prev

  FreeRDP-3.7.0

- Next

  Gparted-1.6.0

- Up
- Home

# Gimp-20240711

## Introduction to Gimp

The Gimp package contains the GNU Image Manipulation Program which is useful for photo retouching, image composition and image authoring.

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

### Package Information

- Download (HTTP): https://anduin.linuxfromscratch.org/BLFS/gimp/gimp3-20240711.tar.xz

- Download MD5 sum: 17fcd0bfc8e66fc61d672b4409cb3e3a

- Download size: 26 MB

- Estimated disk space required: 456 MB (162 MB installed)

- Estimated build time: 1.2 SBU (Using parallelism=4)

### Additional Downloads

### Note

The English version of the help files is complete, but large parts of the text for many other languages are not yet translated.

- Download (HTTP): https://anduin.linuxfromscratch.org/BLFS/gimp/gimp3-help-20240711.tar.xz

- Download size: 129 MB

- Download MD5 sum: 162d57a67ff737ed221a8d7f274d119f

- Estimated disk space required: From 351 MB (74 MB installed) for en only to 1.5 GB for all languages

- Estimated build time: 0.4 SBU (en only), 5.1 SBU for all languages; using parallelism=4

### Gimp Dependencies

#### Required

appstream-glib-0.8.3, gegl-0.4.48, gexiv2-0.14.3, glib-networking-2.80.0, GTK+-3.24.43, harfBuzz-9.0.0, libmypaint-1.6.1, librsvg-2.58.3, libtiff-4.6.0, libxml2-2.13.3 (to build the translated help files), Little CMS-2.16, mypaint-brushes-1.3.1, and Poppler-24.08.0 (including poppler-data)

#### Recommended

Graphviz-12.1.0, ghostscript-10.03.1 (with libgs installed), Gvfs-1.54.2 and glib-networking-2.80.0 (both runtime, to access the online help, open images from a HTTP or HTTPS URL, drag and drop images from an external application, etc.), ISO Codes-4.16.0, libgudev-238, PyGObject-3.48.2, and xdg-utils-1.2.1

#### Optional

AAlib-1.4rc5, alsa-lib-1.2.12, Gjs-1.80.2, libjxl-0.10.3, libmng-2.0.3, libunwind-1.6.2, libwebp-1.4.0, Lua-5.4.7, OpenJPEG-2.5.2, GTK-Doc-1.34.0, cfitsio, libbacktrace, libiff, libilbm, libheif with libde265 (both needed to read macOS heic images), libwmf, OpenEXR, and qoi

#### Optional, for building the help system

dblatex (for PDF docs), pngnq and pngcrush to optimize the png files, but see the note on the help download above

Editor Notes: https://wiki.linuxfromscratch.org/blfs/wiki/gimp

## Installation of Gimp

Install Gimp by running the following commands:

    mkdir gimp-build &&
    cd    gimp-build &&

    meson setup --prefix=/usr --buildtype=release .. &&
    ninja

To test the results (requires an X-Windowed terminal) issue: ninja test.

Now, as the `root` user:

    ninja install

### Note

This package installs icon files into the `/usr/share/icons/hicolor` hierarchy and desktop files into the `/usr/share/applications` hierarchy. You can improve system performance and memory usage by updating `/usr/share/icons/hicolor/index.theme` and `/usr/share/applications/mimeinfo.cache`. To perform the update you must have GTK+-3.24.43 installed (for the icon cache) and desktop-file-utils-0.27 (for the desktop cache) and issue the following commands as the `root` user:

    gtk-update-icon-cache -qtf /usr/share/icons/hicolor &&
    update-desktop-database -q

## Installation of Gimp-Help

The `gimp-help` tarball contains images and English text help for help files, together with translations. If you wish to install local copies of the help files to read offline, unpack the gimp-help tarball and change into the root of the newly created source tree.

    tar -xf ../../gimp3-help-20240711.tar.xz &&
    cd gimp3-help-20240711

    automake --add-missing

    ALL_LINGUAS="ca cs da de en en_GB es fa fr hr ko lt nl nn pt pt_BR ro sl sv uk zh_CN" \
    ./configure --prefix=/usr

Remove from `ALL_LINGUAS` the codes for any languages which you do not wish to install. Alternatively, remove the line starting with `ALL_LINGUAS`, if you wish to build all languages.

Now build the help files:

    make

Issue the following commands as the `root` user to install the help files:

    make install &&
    chown -R root:root /usr/share/gimp/3.0/help

## Command Explanations

`ALL_LINGUAS="ca cs da de en en_GB es fa..."`: by default, the help files will be rendered in all the available languages. Remove the codes of any languages you do not wish to build.

## Configuring The Gimp

### Config Files

`/etc/gimp/3.0/*`

## Contents

Installed Programs: gimp-2.99, gimp-console-2.99, gimptool-2.99, gimp-test-clipboard-2.99, and gimp-script-fu-interpreter-3.0
Installed Libraries: libgimp-3.0.so, libgimp-scriptfu-3.0, libgimpbase-3.0.so, libgimpcolor-3.0.so, libgimpconfig-3.0.so, libgimpmath-3.0.so, libgimpmodule-3.0.so, libgimpui-3.0.so, and libgimpwidgets-3.0.so
Installed Directories: /etc/gimp, /usr/include/gimp-3.0, /usr/lib/gimp-3.0, /usr/lib/gimp/3.0, /usr/share/gimp/3.0, and /usr/share/doc/gimp-2.99

### Short Descriptions

gimp-2.99 | is the Gnu Image Manipulation Program. It works with a variety of image formats and provides a large selection of tools
gimp-console-2.99 | is a console program that behaves as if The Gimp was called with the `--no-interface` command-line option
gimptool-2.99 | is a tool that can build plug-ins or scripts and install them if they are distributed in one source file. gimptool-2.99 can also be used by programs that need to know what libraries and include-paths The Gimp was compiled with
`libgimp-3.0.so` | provides C bindings for The Gimp's Procedural Database (PDB), which offers an interface to core functions and to functionality provided by plug-ins
`libgimpbase-3.0.so` | provides the C functions for basic Gimp functionality such as determining enumeration data types, gettext translation, determining The Gimp's version number and capabilities, handling data files and accessing the environment
`libgimpcolor-3.0.so` | provides the C functions relating to RGB, HSV and CMYK colors as well as converting colors between different color models and performing adaptive supersampling on an area
`libgimpconfig-3.0.so` | contains C functions for reading and writing config information
`libgimpmath-3.0.so` | contains C functions which provide mathematical definitions and macros, manipulate 3x3 transformation matrices, set up and manipulate vectors and the MD5 message-digest algorithm
`libgimpmodule-3.0.so` | provides the C functions which implement module loading using GModule and supports keeping a list of GimpModule's found in a given searchpath
`libgimpthumb-3.0.so` | provides the C functions for handling The Gimp's thumbnail objects
`libgimpui-3.0.so` | contains The Gimp's common user interface functions
`libgimpwidgets-3.0.so` | contains The Gimp and GTK's widget creation and manipulation functions

- Prev

  FreeRDP-3.7.0

- Next

  Gparted-1.6.0

- Up
- Home