LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

bmptopnm

Convert BMP images to PNM format

TLDR

Convert a BMP image to PNM format
$ bmptopnm [image.bmp] > [output.pnm]
copy
Convert from stdin to stdout
$ cat [image.bmp] | bmptopnm > [output.pnm]
copy
Convert BMP to PNG via pipe
$ bmptopnm [image.bmp] | pnmtopng > [output.png]
copy

SYNOPSIS

bmptopnm [-verbose] [bmpfile]

DESCRIPTION

bmptopnm reads a Microsoft Windows or OS/2 BMP file as input and produces a PNM (Portable aNyMap) image as output. The output format (PBM, PGM, or PPM) depends on the input: grayscale images produce PGM, color images produce PPM, and monochrome images produce PBM.This is part of the Netpbm package of image manipulation utilities. Input can be from a file or standard input; output is to standard output.

PARAMETERS

-verbose

Print additional information about the input file.

INSTALL

sudo apt install netpbm
copy
sudo dnf install netpbm
copy
sudo pacman -S netpbm
copy
sudo apk add netpbm
copy
sudo zypper install netpbm
copy
brew install netpbm
copy
nix profile install nixpkgs#netpbm
copy

CAVEATS

Some BMP variants may not be fully supported. For compressed BMP files, decompression is handled automatically for RLE-encoded images. Very old or non-standard BMP formats may cause errors.

SEE ALSO

bmptoppm(1), pnmtopng(1), netpbm(1)

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid