1Rawtoppm User Manual(0)                                Rawtoppm User Manual(0)
2
3
4

NAME

6       rawtoppm - convert a stream of raw RGB bytes to a PPM image
7
8

SYNOPSIS

10       rawtoppm
11
12       [-headerskip N]
13
14       [-rowskip N]
15
16       [ -rgb|-rbg|-grb |-gbr|-brg|-bgr ]
17
18       [-interpixel|-interrow] width height
19
20       [imagedata]
21
22

DESCRIPTION

24       This program is part of Netpbm(1).
25
26       rawtoppm  reads raw RGB bytes as input and produces a PPM image as out‐
27       put.  The input file is just RGB bytes.  You have to specify the  width
28       and  height  on the command line, since the program obviously can't get
29       them from the file.  rawtoppm assumes the maxval of the  input  samples
30       is 255, and makes the maxval of the output PPM 255.
31
32       rawtoppm  assumes  the  pixels  come top first in the input stream.  If
33       they are actually bottom first, the resulting PPM is  upside  down,  so
34       run it through pamflip -tb.
35
36

OPTIONS

38       In  addition  to  the options common to all programs based on libnetpbm
39       (most notably -quiet, see
40        Common Options ⟨index.html#commonoptions⟩ ), rawtoppm  recognizes  the
41       following command line options:
42
43
44
45       -headerskip
46              Skip  over this many bytes at the beginning of the input stream.
47              Use this option when the input has some kind of header  followed
48              by a raster suitable for rawtoppm.
49
50
51       -rowskip
52              Skip  this  many  bytes  at  the  end of each row of the raster.
53              (Some input streams have padding at the end of rows).
54
55
56       -rgb -rbg -grb -gbr -brg -bgr
57              This option specifies the order of the color components for each
58              pixel.  The default is -rgb.
59
60
61       -interpixel -interrow
62              These  options  specify  how  the  colors  are interleaved.  The
63              default is -interpixel, meaning interleaved by pixel.  A byte of
64              red,  a  byte  of  green,  and a byte of blue, or whatever color
65              order you specified.  -interrow means interleaved by row - a row
66              of  red,  a  row  of green, a row of blue, assuming standard rgb
67              color order.  An -interplane option - all the red  pixels,  then
68              all  the  green,  then all the blue - would be an obvious exten‐
69              sion, but is not implemented.  You could get the same effect  by
70              splitting  the file into three parts (perhaps using dd), turning
71              each part into a PGM file with rawtopgm, and then combining them
72              with rgb3toppm.
73
74
75
76

SEE ALSO

78       ppm(1), rawtopgm(1), rgb3toppm(1), pamflip(1)
79
80

AUTHOR

82       Copyright (C) 1991 by Jef Poskanzer.
83

DOCUMENT SOURCE

85       This  manual  page was generated by the Netpbm tool 'makeman' from HTML
86       source.  The master documentation is at
87
88              http://netpbm.sourceforge.net/doc/rawtoppm.html
89
90netpbm documentation           06 February 1991        Rawtoppm User Manual(0)
Impressum