pnmquant

Quantize the colors in a PNM image into a smaller set. This command is a combination of pnmcolormap and pnmremap and accepts the union of their options, except -mapfile. More information: <https://netpbm.sourceforge.net/doc/pnmquant.html>.

Debian Debian
RUN apt-get update && \ apt-get install -y netpbm
Ubuntu
RUN apt-get update && \ apt-get install -y netpbm
Arch Arch Linux
RUN pacman -S --noconfirm netpbm
image/svg+xml Kali Linux
RUN apt-get update && \ apt-get install -y netpbm
CentOS
RUN yum install -y netpbm-progs
Fedora
RUN dnf install -y netpbm-progs
Raspbian
RUN apt-get update && \ apt-get install -y netpbm
click the source code to copy install pnmquant on any operating system with command-not-found.com