LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

rawtoppm

Convert raw RGB data to PPM format

TLDR

Convert raw RGB to PPM
$ rawtoppm [width] [height] [input.raw] > [output.ppm]
copy
Convert with interleaved format
$ rawtoppm -interrow [width] [height] [input.raw] > [output.ppm]
copy

SYNOPSIS

rawtoppm [options] width height [file]

DESCRIPTION

rawtoppm converts raw RGB color data into Portable Pixmap (PPM) format by interpreting a byte stream as red, green, and blue pixel values arranged according to specified image dimensions. The tool handles different memory layouts for the color channels: the default expects pixel-interleaved data (RGBRGB...), while -interrow reads row-interleaved data where each color plane is stored as a complete row before the next.Since raw data contains no metadata, both width and height must be specified as arguments. The -headerskip option skips non-image data at the beginning of the file. It is part of the Netpbm image processing toolkit.

PARAMETERS

width

Image width in pixels.
height
Image height in pixels.
-headerskip bytes
Skip header bytes.
-interrow
Row-interleaved RGB.
-interpixel
Pixel-interleaved RGB.

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

SEE ALSO

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