Categories: Ubuntu

How to Enable JPEG-XL (.jxl) Image Support in Ubuntu 22.04/20.04

Want to open (or export to) .jxl files? Here’s how to enable the image format support in Ubuntu and Debian.

JPEG-XL (.jxl) is a royalty-free raster-graphics image format supports both lossy and lossless compression. It includes features such as animation, alpha channels, layers, thumbnails, and has better compression efficiency (60% improvement) comparing to JPEG.

GNOME favors JPEG-XL as background wallpaper in next version 46. But, Ubuntu now does not support the image format due to lack of a build dependency.

If you have some .jxl images stored in Ubuntu, then here’s how to make them work in image viewer, GIMP, and maybe other graphical apps.

Enable
Sponsored
JPEG-XL Support in Debian & Ubuntu

There’s a popular free open-source libjxl library for encoding and decoding JPEG-XL in Linux.

Many Linux Distributions have made the library into system repositories. Ubuntu also has the library in system repository since Ubuntu 23.10, but built without gdk-pixbuf plugin for image loading and pixel buffer manipulation.

Thankfully, libjxl project provides official .deb packages, so far supports Debian 11 Bullseye, Debian 12 Bookworm, Debian unstable Sid, Ubuntu 22.04, and Ubuntu 20.04.

1. Download libjxl package

First, go to the project releases page via the link button below:

Under ‘Assets’ section, click “Show all xx assets” and select download jxl-debs... for your system. For Ubuntu 18.04, scroll down and select download version 0.8.2.

In case you don’t even know which system version is running, launch terminal (for Ubuntu press Ctrl+Alt+T) and run command:

lsb_release -a

For Linux Distributions based on Ubuntu or Debian, run cat /etc/os-release to tell which upstream version your system is based on.

Sponsored

2. Install libjxl

After downloaded the package, extract it in your file manager, finally right-click on the new generated folder and select “Open in Terminal“.

In pop-up terminal window, run ls to list all contained files, and run the command below to install all the deb packages:

sudo apt install ./*.deb

NOTE: There may be package conflicts if you installed 3rd-party libjxl as dependency, such as gThumb from this PPA. I’ve re-built the package without my personal build of libjxl.

After installed the packages, you can now re-open image viewer and/or image editors to see the magic!

GIMP can now export .jxl after this tutorial

That’s all. Enjoy!

The post How to Enable JPEG-XL (.jxl) Image Support in Ubuntu 22.04/20.04 appeared first on Osgrove.

Ubuntu Server Admin

Recent Posts

Web Engineering: Hack Week 2024

At Canonical, the work of our teams is strongly embedded in the open source principles…

5 hours ago

Ubuntu Weekly Newsletter Issue 873

Welcome to the Ubuntu Weekly Newsletter, Issue 873 for the week of December 29, 2024…

2 days ago

How to resolve WiFi Issues on Ubuntu 24.04

Have WiFi troubles on your Ubuntu 24.04 system? Don’t worry, you’re not alone. WiFi problems…

2 days ago

Remembering and thanking Steve Langasek

The following is a post from Mark Shuttleworth on the Ubuntu Discourse instance. For more…

2 days ago

How to Change Your Prompt in Bash Shell in Ubuntu

I don’t like my prompt, i want to change it. it has my username and…

2 days ago

The Silent Guardian: Why Bundler Checksums Are a Game-Changer for Your Applications

Introduction: A Fragile Trust The Ruby ecosystem relies heavily on RubyGems.org as the central platform…

3 days ago