bmptopnm

Convert a BMP file into a PBM, PGM, or PNM image. More information: <https://netpbm.sourceforge.net/doc/bmptopnm.html>.

Install

All systems
curl cmd.cat/bmptopnm.sh
Debian Debian
apt-get install netpbm
Ubuntu
apt-get install netpbm
Arch Arch Linux
pacman -S netpbm
image/svg+xml Kali Linux
apt-get install netpbm
CentOS
yum install netpbm-progs
Fedora
dnf install netpbm-progs
Windows (WSL2)
sudo apt-get update sudo apt-get install netpbm
OS X
brew install netpbm
Raspbian
apt-get install netpbm

Convert a BMP file into a PBM, PGM, or PNM image. More information: <https://netpbm.sourceforge.net/doc/bmptopnm.html>.

  • Generate the PBM, PGM, or PNM image as output, for Windows or OS/2 BMP file as input:
    bmptopnm path/to/file.bmp
  • Report contents of the BMP header to `stderr`:
    bmptopnm -verbose path/to/file.bmp
  • Display version:
    bmptopnm -version

© tl;dr; authors and contributors