summaryrefslogtreecommitdiffstats
path: root/upstream/fedora-40/man1/rasttopnm.1
blob: 2f0987686253e1076d56cfb88589c7b64335e655 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
\
.\" This man page was generated by the Netpbm tool 'makeman' from HTML source.
.\" Do not hand-hack it!  If you have bug fixes or improvements, please find
.\" the corresponding HTML page on the Netpbm website, generate a patch
.\" against that, and send it to the Netpbm maintainer.
.TH "Rasttopnm User Manual" 0 "16 August 2011" "netpbm documentation"

.SH NAME
rasttopnm - convert a Sun rasterfile to a PNM image

.UN synopsis
.SH SYNOPSIS

\fBrasttopnm\fP

[\fB-index\fP]

[\fIrastfile\fP]

.UN description
.SH DESCRIPTION
.PP
This program is part of
.BR "Netpbm" (1)\c
\&.
.PP
\fBrasttopnm\fP reads a Sun rasterfile as input and produces a PNM
image as output.  The type of the output file depends on the input
file - if it's black and white, \fBrasttopnm\fP writes a PBM image.
If it's grayscale, \fBrasttopnm\fP writes a PGM.  If it's color,
\fBrasttopnm\fP writes a PPM.  The program tells you which type it is
generating.

.UN options
.SH OPTIONS
.PP
In addition to the options common to all programs based on libnetpbm
(most notably \fB-quiet\fP, see 
.UR index.html#commonoptions
 Common Options
.UE
\&), \fBrasttopnm\fP recognizes the following
command line option:


  
.TP
\fB-index\fP
This odd option tells \fBrasttopnm\fP to use the color map indices in
the raster as if they are the color values.
.sp
In a colormapped Sun rasterfile, the header of the file contains a color
map, associating each unique color that occurs in the file with an index
number.  The raster portion of the file then represents the color of a pixel
with one of those colormap indices.
.sp
This option has found use as follows: take a regular grayscale Sun
rasterfile in which all the grayscale value are represented, so the colormap
indices are identical to the color values.  Modify its color map so as to
alter the colors in the image, in particular to equalize the colors.  With
that modified rasterfile as input, \fBrasttopnm\fP without \fB-index\fP
produces the modified image.  But with \fB-index\fP, it produces the original
unmodified image.
.sp
This option was new in Netpbm 10.56 (September 2011).



.UN seealso
.SH SEE ALSO
.BR "pnmtorast" (1)\c
\&, 
.BR "pnm" (1)\c
\&

.UN author
.SH AUTHOR

Copyright (C) 1989, 1991 by Jef Poskanzer.
.SH DOCUMENT SOURCE
This manual page was generated by the Netpbm tool 'makeman' from HTML
source.  The master documentation is at
.IP
.B http://netpbm.sourceforge.net/doc/rasttopnm.html
.PP