pamdepth

Reduce the depth (i.e. color resolution) in an image. More information: <https://netpbm.sourceforge.net/doc/pamdepth.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 pamdepth on any operating system with command-not-found.com