pngsplit command not found

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

Introduction

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

pngsplit: command not found

or when using sudo you get the following error message

sudo: pngsplit: command not found

Solutions to pngsplit: command not found

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

In Ubuntu pngsplit is provided by pngcheck package.

pngcheck is:

pngcheck verifies the integrity of PNG, JNG and MNG files (by checking the internal 32-bit CRCs or checksums) and optionally dumps almost all of the chunk-level information in the image in human-readable form. For example, it can be used to print the basic stats about an image (dimensions, bit depth, etc.); to list the color and transparency info in its palette; or to extract the embedded text annotations. All PNG and JNG chunks are supported, plus almost all MNG chunks (everything but PAST, DISC, tERm, DROP, DBYK, and ORDR). This is a command-line program with batch capabilities (e.g., pngcheck *.png).

Also includes pngsplit which can split a PNG, MNG or JNG file into individual, numbered chunks.

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

sudo apt-get -y install pngcheck

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

You can also use apt command to install pngcheck.

sudo apt -y install pngcheck

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

sudo aptitude install pngcheck

Summary

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