Rawtoppm User Manual(1) | General Commands Manual | Rawtoppm User Manual(1) |
rawtoppm - convert a stream of raw RGB bytes to a PPM image
rawtoppm
[-headerskip N]
[-rowskip N]
[ -rgb|-rbg|-grb |-gbr|-brg|-bgr ]
[-interpixel|-interrow] width height
[imagedata]
This program is part of Netpbm(1).
rawtoppm reads raw RGB bytes as input and produces a PPM image as output. The input file is just RGB bytes. You have to specify the width and height on the command line, since the program obviously can't get them from the file. rawtoppm assumes the maxval of the input samples is 255, and makes the maxval of the output PPM 255.
rawtoppm assumes the pixels come top first in the input stream. If they are actually bottom first, the resulting PPM is upside down, so run it through pamflip -tb.
In addition to the options common to all programs based on
libnetpbm (most notably -quiet, see
Common Options ), rawtoppm recognizes the following command line
options:
Copyright (C) 1991 by Jef Poskanzer.
This manual page was generated by the Netpbm tool 'makeman' from HTML source. The master documentation is at
06 February 1991 | netpbm documentation |