How To Install libjxr-tools on Ubuntu 18.04

In this tutorial we learn how to install libjxr-tools on Ubuntu 18.04. libjxr-tools is JPEG-XR lib - command line apps

Introduction

In this tutorial we learn how to install libjxr-tools on Ubuntu 18.04.

What is libjxr-tools

libjxr-tools is:

JPEG XR is an approved ISO/IEC International standard (its official designation is ISO/IEC 29199-2).

JPEG XR started its life in Microsoft Research. It publicly first appeared as the HD Photo format in Windows Vista.

For web developers, JPEG XR has a large number of interesting features, see the table below. Some of these are big advantages over other image formats like JPEG, PNG, OpenEXR, and TIFF.

  • Better Compression (40% smaller than JPEG)
  • Lossless Mode (better compression than PNG)
  • Alpha Channel (compress color lossy and alpha losslessly)
  • Extended Bitdepth (supports 8-, 16-, and 32-bit/channel)
  • Progressive Decode
  • Advanced Decoding Features (tile-based layout, for efficient region-of-interest access.)

Provides command line tools for JPEG XR libs (JxrDecApp & JxrEncApp)

There are three methods to install libjxr-tools on Ubuntu 18.04. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install libjxr-tools Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install libjxr-tools using apt-get by running the following command:

sudo apt-get -y install libjxr-tools

Install libjxr-tools Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install libjxr-tools using apt by running the following command:

sudo apt -y install libjxr-tools

Install libjxr-tools Using aptitude

If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Ubuntu. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install libjxr-tools using aptitude by running the following command:

sudo aptitude -y install libjxr-tools

How To Uninstall libjxr-tools on Ubuntu 18.04

To uninstall only the libjxr-tools package we can use the following command:

sudo apt-get remove libjxr-tools

Uninstall libjxr-tools And Its Dependencies

To uninstall libjxr-tools and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:

sudo apt-get -y autoremove libjxr-tools

Remove libjxr-tools Configurations and Data

To remove libjxr-tools configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge libjxr-tools

Remove libjxr-tools configuration, data, and all of its dependencies

We can use the following command to remove libjxr-tools configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge libjxr-tools

References

Summary

In this tutorial we learn how to install libjxr-tools package on Ubuntu 18.04 using different package management tools: apt, apt-get and aptitude.