openslide-write-png command not found

In this troubleshooting guide we learn how to fix openslide-write-png command not found error message

Introduction

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

openslide-write-png: command not found

or when using sudo you get the following error message

sudo: openslide-write-png: command not found

Solutions to openslide-write-png: command not found

How To Fix openslide-write-png: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu openslide-write-png is provided by openslide-tools package.

openslide-tools is:

OpenSlide is a C library that provides a simple interface to read whole-slide images also known as virtual slides.

Whole-slide images, also known as virtual slides, are large, high resolution images used in digital pathology. Reading these images using standard image tools or libraries is a challenge because these tools are typically designed for images that can comfortably be uncompressed into RAM or a swap file. Whole-slide images routinely exceed RAM sizes, often occupying tens of gigabytes when uncompressed. Additionally, whole-slide images are typically multi-resolution, and only a small amount of image data might be needed at a particular resolution.

This library currently supports:

  • Aperio (.svs, .tif)
  • Hamamatsu (.vms, .vmu, .ndpi)
  • Leica (.scn)
  • MIRAX (.mrxs)
  • Sakura (.svslide)
  • Trestle (.tif)
  • Generic tiled TIFF (.tif)

This package contains command line tools for file manipulation.

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

sudo apt-get -y install openslide-tools

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

You can also use apt command to install openslide-tools.

sudo apt -y install openslide-tools

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

sudo aptitude install openslide-tools

Summary

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