Getting Started with gThumb 4.0: A Comprehensive Guide to the GTK4/Libadwaita Overhaul

By

Overview

gThumb, the popular open-source image viewer and organizer, has undergone a radical transformation in its upcoming version 4.0. Completely rewritten in Vala and ported to GTK4 and libadwaita, the new interface is a stark departure from the familiar GTK3 look. This alpha release brings modern design patterns, support for WEBP and PNG animations, the ability to export images in the JPEG XL (JXL) format, and a censor filter for pixelating or blurring parts of an image. While visual consistency isn't guaranteed out of the box, the update marks a significant leap forward in functionality and aesthetics. This guide will walk you through everything you need to know to get started with gThumb 4.0—from understanding what's new to installing and experimenting with it.

Getting Started with gThumb 4.0: A Comprehensive Guide to the GTK4/Libadwaita Overhaul
Source: www.omgubuntu.co.uk

Prerequisites

System Requirements

Knowledge

Step-by-Step Instructions

1. Understanding the Changes

Before diving in, it's crucial to appreciate what's different. gThumb 4.0 is not just a simple version bump. The entire codebase was rewritten from Python (or older Vala?) to pure Vala, leveraging GTK4's refined toolkit and libadwaita's modern design language. This results in a cleaner, more responsive interface with adaptive layout, dark mode support, and touch-friendly controls. However, the alpha stage means some features may be incomplete or buggy. Key new capabilities include:

2. Installing gThumb 4.0 Alpha

There are two primary ways to get the alpha build: via Flatpak (official test channel) or by compiling from source. We recommend Flatpak for ease.

Option A: Install via Flatpak (Flathub Beta)

  1. Ensure Flatpak is installed on your system. If not, install it with your package manager (e.g., sudo apt install flatpak on Ubuntu).
  2. Add the Flathub beta repository:
    flatpak remote-add --if-not-exists flathub-beta https://flathub.org/beta-repo/flathub-beta.flatpakrepo
  3. Install gThumb 4.0 beta:
    flatpak install flathub-beta org.gnome.gThumb
  4. Run the alpha version:
    flatpak run org.gnome.gThumb

Note: The beta channel may have multiple versions; choose the one marked 4.0 alpha.

Option B: Build from Source

  1. Clone the repository:
    git clone https://gitlab.gnome.org/GNOME/gthumb.git
    cd gthumb
  2. Checkout the GTK4 branch (typically named gtk4 or wip/gtk4):
    git checkout origin/gtk4
  3. Install build dependencies. For Ubuntu/Debian:
    sudo apt build-dep gthumb
    sudo apt install meson ninja-build valac libgtk-4-dev libadwaita-1-dev
  4. Configure and build:
    meson build
    ninja -C build
  5. Run directly from build directory:
    ./build/src/gthumb

3. Exploring the New Interface

Launch gThumb 4.0. You'll immediately notice the header bar follows libadwaita conventions—rounded corners, adaptive spacing, and a centered title. The sidebar uses a collapsible design, and the main view adapts to window size. Important: Some buttons and menus may appear differently than in the stable version. The 'Edit' menu might lack certain tools; the censor filter is located under Filters > Censor.

Getting Started with gThumb 4.0: A Comprehensive Guide to the GTK4/Libadwaita Overhaul
Source: www.omgubuntu.co.uk

Tip: Customize the toolbar by right-clicking it. You can add/remove actions to match your workflow.

4. Using New Features

WEBP and PNG Animations

Simply open a .webp or animated .png file. gThumb will play the animation automatically in the viewer. You can pause/play using the toolbar button or the spacebar.

Exporting to JXL

  1. Open an image.
  2. Go to File > Export.
  3. In the format dropdown, select JPEG XL (*.jxl).
  4. Configure quality settings (lossy/lossless) and export.

JXL offers superior compression; ideal for archiving or sharing.

Applying the Censor Filter

  1. Select the area you want to censor using the selection tool (rectangle or freehand).
  2. Navigate to Filters > Censor.
  3. Choose between Pixelate or Blur.
  4. Adjust intensity via the slider and click Apply.

5. Troubleshooting Common Issues

If the interface looks broken (e.g., missing icons, misaligned widgets), ensure your system has the latest libadwaita theme. Run:

flatpak update

For source builds, check that you're using GTK4 version 4.10+. Also note that the alpha may require a window manager with CSD support.

Common Mistakes

Assuming Full Feature Parity

The alpha is incomplete. Many plugins and advanced editing tools are not yet ported. Don't expect to replace your stable gThumb entirely.

Using Stable Release Channels

If you install from Flathub stable, you'll get version 3.x. Ensure you add the beta remote.

Ignoring Dependencies

When building from source, missing libraries like libheif or libraw might cause missing features. Install all optional dependencies listed in the meson_options.txt.

Not Backing Up Settings

Alpha versions might corrupt configuration files. Backup ~/.config/gthumb before testing.

Summary

gThumb 4.0 alpha brings a fresh look and new capabilities (WEBP/PNG animation, JXL export, censor filter) thanks to its GTK4/libadwaita port. To try it, install via Flatpak beta or compile from the gtk4 branch. Expect visual inconsistencies and missing features, but the foundation is promising. This guide equips you to explore the changes, test new features, and avoid common pitfalls. As development progresses, gThumb 4.0 promises to be a modern, powerful image manager.

Tags:

Related Articles

Recommended

Discover More

Iran-Linked Hacktivists Target Medical Giant Stryker in Devastating Wiper AttackUnderstanding Kubernetes v1.36's Pod-Level Resource Managers – Alpha Feature Explained10 Critical Facts About ClickHouse Docker Security and How to Fix ItBreaking: More Than Half of Workers Actively Job-Hunting Amid Stagnation Crisis — Expert Unveils ‘Third Way’Trump Administration Abruptly Removes All Members of the National Science Board