Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ rawtopgm(1) — BSD/386 1.0

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

pgm(5)

rawtoppm(1)

pnmflip(1)



rawtopgm(1)                                           rawtopgm(1)


NAME
       rawtopgm  -  convert  raw  grayscale bytes into a portable
       graymap

SYNOPSIS
       rawtopgm [-headerskip N] [-rowskip N] width height [image-
       data]

DESCRIPTION
       Reads  raw  grayscale bytes as input.  Produces a portable
       graymap as output.   The  input  file  is  just  grayscale
       bytes.   You  have  to specify the width and height on the
       command line, since the program obviously can't  get  them
       from  the  file.  The maxval is assumed to be 255.  If the
       resulting image is upside down, run it through pnmflip -tb
       .

OPTIONS
       -headerskip
              If  the file has a header, you can use this flag to
              skip over it.

       -rowskip
              If there is padding at the ends of  the  rows,  you
              can  skip it with this flag.  Note that rowskip can
              be a real number.  Amazingly, I once had  an  image
              with  0.376  bytes of padding per row.  This turned
              out to be due to a file-transfer problem, but I was
              still able to read the image.

SEE ALSO
       pgm(5), rawtoppm(1), pnmflip(1)

AUTHOR
       Copyright (C) 1989 by Jef Poskanzer.






















                          15 December 89                        1


Typewritten Software • bear@typewritten.org • Edmonds, WA 98026