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       -headerskip
39              Skip  over this many bytes at the beginning of the input stream.
40              Use this option when the input has some kind of header  followed
41              by a raster suitable for rawtoppm.
42
43
44       -rowskip
45              Skip  this  many  bytes  at  the  end of each row of the raster.
46              (Some input streams have padding at the end of rows).
47
48
49       -rgb -rbg -grb -gbr -brg -bgr
50              This option specifies the order of the color components for each
51              pixel.  The default is -rgb.
52
53
54       -interpixel -interrow
55              These  options  specify  how  the  colors  are interleaved.  The
56              default is -interpixel, meaning interleaved by pixel.  A byte of
57              red,  a  byte  of  green,  and a byte of blue, or whatever color
58              order you specified.  -interrow means interleaved by row - a row
59              of  red,  a  row  of green, a row of blue, assuming standard rgb
60              color order.  An -interplane option - all the red  pixels,  then
61              all  the  green,  then all the blue - would be an obvious exten‐
62              sion, but is not implemented.  You could get the same effect  by
63              splitting  the file into three parts (perhaps using dd), turning
64              each part into a PGM file with rawtopgm, and then combining them
65              with rgb3toppm.
66
67
68
69

SEE ALSO

71       ppm(1), rawtopgm(1), rgb3toppm(1), pamflip(1)
72
73

AUTHOR

75       Copyright (C) 1991 by Jef Poskanzer.
76

DOCUMENT SOURCE

78       This  manual  page was generated by the Netpbm tool 'makeman' from HTML
79       source.  The master documentation is at
80
81              http://netpbm.sourceforge.net/doc/rawtoppm.html
82
83netpbm documentation           06 February 1991        Rawtoppm User Manual(0)
Impressum