Penguin
Annotated edit history of pamcut(1) version 1, including all changes. View license author blame.
Rev Author # Line
1 perry 1 pamcut
2 !!!pamcut
3 NAME
4 SYNOPSIS
5 DESCRIPTION
6 OPTIONS
7 SEE ALSO
8 AUTHOR
9 ----
10 !!NAME
11
12
13 pamcut - cut a rectangle out of a PAM, PBM, PGM, or PPM image
14 !!SYNOPSIS
15
16
17 __pamcut__ [[__-left__ ''leftcol''] [[__-right__
18 ''rightcol''] [[__-top__ ''toprow''] [[__-bottom__
19 ''bottomrow''] [[__-width__ ''width'']
20 [[__-height__ ''height''] [[__-pad__]
21 [[__-verbose__] [[ ''left right width height'' ]
22 [[''pnmfile'']
23
24
25 All options may be abbreviated to the shortest unique
26 prefix.
27 !!DESCRIPTION
28
29
30 Reads a PAM, PBM, PGM, or PPM image as input. Extracts the
31 specified rectangle, and produces the same kind of image as
32 output.
33
34
35 There are two ways to specify the rectangle to cut:
36 arguments and options. Options are easier to remember and
37 read, more expressive, and allow you to use defaults.
38 Arguments were the only way available before July
39 2000.
40
41
42 If you use both options and arguments, the two
43 specifications get mixed in an unspecified way.
44
45
46 To use options, just code any mixture of the __-left__,
47 __-right__, __-top__, __-bottom__, __-width__,
48 and __-height__ options. What you don't specify defaults.
49 It is an error to overspecify, i.e. to specify all three of
50 __-left__, __-right__, and __-width__ or
51 __-top__, __-bottom__, and
52 __-height__.
53
54
55 To use arguments, specify all four of the ''left'',
56 ''right'', ''width'', and ''height'' arguments.
57 ''left'' and ''top'' have the same effect as
58 specifying them as the argument of a __-left__ or
59 __-top__ option, respectively. ''width'' and
60 ''height'' have the same effect as specifying them as the
61 argument of a __-width__ or __-height__ option,
62 respectively, where they are positive. Where they are not
63 positive, they have the same effect as specifying one less
64 than the value as the argument to a __-right__ or
65 __-bottom__ option, respectively. (E.g. ''width'' = 0
66 makes the cut go all the way to the right edge). Before July
67 2000, negative numbers were not allowed for ''width'' and
68 ''height''.
69
70
71 Input is from Standard Input if you don't specify the input
72 file ''pnmfile''.
73
74
75 Output is to Standard Output.
76 !!OPTIONS
77
78
79 __-left__
80
81
82 The column number of the leftmost column to be in the
83 output. If a nonnegative number, it refers to columns
84 numbered from 0 at the left, increasing to the right. If
85 negative, it refers to columns numbered -1 at the right,
86 decreasing to the left.
87
88
89 __-right__
90
91
92 The column number of the rightmost column to be in the
93 output, numbered the same as for __-left.__
94
95
96 __-top__
97
98
99 The row number of the topmost row to be in the output. If a
100 nonnegative number it refers to rows numbered from 0 at the
101 top, increasing downward. If negative, it refers to columns
102 numbered -1 at the bottom, decreasing upward.
103
104
105 __-bottom__
106
107
108 The row number of the bottom-most row to be in the output,
109 numbered the same as for __-top__.
110
111
112 __-width__
113
114
115 The number of columns to be in the output. Must be
116 positive.
117
118
119 __-height__
120
121
122 The number of rows to be in the output. Must be
123 positive.
124
125
126 __-pad__
127
128
129 If the rectangle you specify is not entirely within the
130 input image, __pamcut__ fails unless you also specify
131 __-pad__. In that case, it pads the output with black up
132 to the edges you specify. You can use this option if you
133 need to have an image of certain dimensions and have an
134 image of arbitrary dimensions.
135
136
137 __pnmpad__ also adds borders to an image, but you specify
138 their width directly.
139
140
141 __-verbose__
142
143
144 Print information about the processing to Standard
145 Error.
146 !!SEE ALSO
147
148
149 pnmcrop(1), pnmpad(1), pnmcat(1),
150 pgmslice(1), pnm(5)
151 !!AUTHOR
152
153
154 Copyright (C) 1989 by Jef Poskanzer.
155 ----
This page is a man page (or other imported legacy content). We are unable to automatically determine the license status of this page.