tiff2jp2 command not found

In this troubleshooting guide we learn how to fix tiff2jp2 command not found error message

Introduction

When you run more command in linux terminal / console, you get the following error message

tiff2jp2: command not found

or when using sudo you get the following error message

sudo: tiff2jp2: command not found

Solutions to tiff2jp2: command not found

How To Fix tiff2jp2: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu tiff2jp2 is provided by glymur-bin package.

glymur-bin is:

Glymur is an interface to the OpenJPEG library which allows one to read and write JPEG 2000 files from Python. Glymur supports both reading and writing of JPEG 2000 images, but writing JPEG 2000 images is currently limited to images that can fit in memory. Glymur can read images using OpenJPEG library versions as far back as 1.3, but it is strongly recommended to use at least version 2.1.2.

In regards to metadata, most JP2 boxes are properly interpreted. Certain optional JP2 boxes can also be written, including XML boxes and XMP UUIDs. There is incomplete support for reading JPX metadata.

Glymur will look to use lxml when processing boxes with XML content, but can fall back upon the standard library’s ElementTree if lxml is not available.

This package provides utilities and executable scripts.

To fix this problem, we can install more using the command below.

sudo apt-get -y install glymur-bin

This command might take some time to finish depending on your machine internet connection.

You can also use apt command to install glymur-bin.

sudo apt -y install glymur-bin

Or if you have aptitude installed you can use the following command.

sudo aptitude install glymur-bin

Summary

In this tutorial we learn how to fix tiff2jp2 command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.