pngnq command not found

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

Introduction

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

pngnq: command not found

or when using sudo you get the following error message

sudo: pngnq: command not found

Solutions to pngnq: command not found

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

In Ubuntu pngnq is provided by pngnq package.

pngnq is:

Pngnq is a tool for quantizing 32-bit RGBA PNG images to 8-bit RGBA pallete PNG. It’s is an adaptation by Stuart Coyle of Greg Roelf’s pnqquant. While pngquant uses a median cut algorithm, Pngnq uses Anthony Dekker’s neuquant algorithm (http://members.ozemail.com.au/~dekker/NEUQUANT.HTML), generally resulting in better looking results than pngquant.

Optimizers (like pngcrush and optipng) optimize the compression, usually losslessly. pngnq quantizes colors down to 256 (or fewer) distinct RGBA combinations, which is quite lossy. Optimized PNGs are usually two to four times smaller than the 32-bit versions.

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

sudo apt-get -y install pngnq

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

You can also use apt command to install pngnq.

sudo apt -y install pngnq

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

sudo aptitude install pngnq

Summary

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