File: composite.tex

package info (click to toggle)
imagemagick 4%3A5.4.4.5-1woody6
  • links: PTS
  • area: main
  • in suites: woody
  • size: 20,904 kB
  • ctags: 11,673
  • sloc: ansic: 141,668; cpp: 15,076; sh: 7,495; perl: 2,530; makefile: 1,101; tcl: 459
file content (191 lines) | stat: -rw-r--r-- 6,226 bytes parent folder | download
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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191

% Maintainer: please don't edit this file.  It was created from
% "options.imdoc" using the imdoc2tex script.  Edit options.imdoc instead.

\title{Composite}
\toctitle{Composite}
\titlerunning{Composite}
\maketitle\label{Composite}

\section{NAME}
composite - composite images together.


\section{Synopsis}

{\bf composite} {\bf [} {\it options\/} {\bf ... ]} {\it image composite\/}
{\bf [} {\it mask\/} {\bf ]} {\it composited\/}


\section{Description}

{\bf composite} composite images to create new images.

The optional {\bf mask} can be used to provide matte information for
{\bf composite}
when it has none or if you want a different mask. A mask image is typically
grayscale and the same size as {\bf composite}. If the image is not grayscale,
it is converted to grayscale and the resulting intensities are used as
matte information.

If {\it composited\/} already exists, you will be prompted as to whether it
should be overwritten.

\section{Examples}

To composite an image of a cockatoo with a perch, use:
\begin{verbatim}
    composite cockatoo.miff perch.ras composite.miff
\end{verbatim}

To compute the difference between images in a series, use:
\begin{verbatim}
    composite -compose difference series.1 series.2
              difference.miff
\end{verbatim}

To composite an image of a cockatoo with a perch starting at location (100,150),
use:
\begin{verbatim}
    composite -geometry +100+150 cockatoo.miff
              perch.ras composite.miff
\end{verbatim}

To tile a logo across your image of a cockatoo, use
\begin{verbatim}
    convert +shade 30x60 cockatoo.miff mask.miff
    composite -compose bumpmap -tile logo.png
              cockatoo.miff mask.miff composite.miff
\end{verbatim}

To composite a red, green, and blue color plane into a single composite image,
try
\begin{verbatim}
    composite -compose CopyGreen red.png green.png
              red-green.png
    composite -compose CopyBlue red-green.png blue.png
              composite.png
\end{verbatim}


\section{Options}

Options are processed in command line order. Any option you specify on
the command line remains in effect only for the image that follows.  All
options are reset to their default values after each image is read.

For a more detailed description of each option, see
{\it ImageMagick(1)\/}.


\subsubsection{-background $<$color$>$}
the background color
\subsubsection{-cache $<$threshold$>$}
megabytes of memory available to the pixel cache
\subsubsection{-colors $<$value$>$}
preferred number of colors in the image
\subsubsection{-colorspace $<$value$>$}
the type of colorspace
\subsubsection{-comment $<$string$>$}
annotate an image with a comment
\subsubsection{-compose $<$operator$>$}
the type of image composition
\subsubsection{-compress $<$type$>$}
the type of image compression
\subsubsection{-debug}
enable debug printout
\subsubsection{-density $<$width$>$x$<$height$>$}
vertical and horizontal resolution in pixels of the image
\subsubsection{-depth $<$value$>$}
depth of the image
\subsubsection{-displace $<$horizontal scale$>$x$<$vertical scale$>$}
shift image pixels as defined by a displacement map
\subsubsection{-display $<$host:display[.screen]$>$}
specifies the X server to contact
\subsubsection{-dispose $<$method$>$}
GIF disposal method
\subsubsection{-dissolve $<$percent$>$}
dissolve an image into another by the given percent
\subsubsection{-dither}
apply Floyd/Steinberg error diffusion to the image
\subsubsection{-endian $<$type$>$}
specify endianness (MSB or LSB) of output image
\subsubsection{-filter $<$type$>$}
use this type of filter when resizing an image
\subsubsection{-font $<$name$>$}
use this font when annotating the image with text
\subsubsection{-geometry $<$width$>$x$<$height$>$\{+-\}$<$x$>$\{+-\}$<$y$>$\{\%\}\{@\} \{{!}\}\{$<$\}\{$>$\}}
preferred size and location of the Image window.
\subsubsection{-gravity $<$type$>$}
direction primitive  gravitates to when annotating the image.
\subsubsection{-help}
print usage instructions
\subsubsection{-interlace $<$type$>$}
the type of interlacing scheme
\subsubsection{-label $<$name$>$}
assign a label to an image
\subsubsection{-matte}
store matte channel if the image has one
\subsubsection{-monochrome}
transform the image to black and white
\subsubsection{-negate}
replace every pixel with its complementary color
\subsubsection{-page $<$width$>$x$<$height$>$\{+-\}$<$x$>$\{+-\}$<$y$>$\{\%\}\{{!}\}\{$<$\}\{$>$\}}
size and location of an image canvas
\subsubsection{-profile $<$filename$>$}
add ICM, IPTC, or generic profile  to image
\subsubsection{-quality $<$value$>$}
JPEG/MIFF/PNG compression level
\subsubsection{-resize $<$width$>$x$<$height$>$\{+-\}$<$x$>$\{+-\}$<$y$>$\{\%\}\{@\}\{{!}\}\{$<$\}\{$>$\}}
resize and locate an image
\subsubsection{-rotate $<$degrees$>$\{$<$\}\{$>$\}}
apply Paeth image rotation to the image
\subsubsection{-sampling\_factor $<$horizontal\_factor$>$x$<$vertical\_factor$>$ }
sampling factors used by JPEG encoder.
\subsubsection{-scene $<$value$>$}
set scene number
\subsubsection{-sharpen $<$radius$>$x$<$sigma$>$}
sharpen the image
\subsubsection{-size $<$width$>$x$<$height$>$\{+offset\}}
width and height of the image
\subsubsection{-stegano $<$offset$>$}
hide watermark within an image
\subsubsection{-stereo}
composite two images to create a stereo anaglyph
\subsubsection{-treedepth $<$value$>$}
tree depth for the color reduction algorithm
\subsubsection{-trim}
trim an image
\subsubsection{-type $<$type$>$}
the image type
\subsubsection{-units $<$type$>$}
the type of image resolution
\subsubsection{-unsharp $<$radius$>$x$<$sigma$>$}
sharpen the image with an unsharp mask operator
\subsubsection{-verbose}
print detailed information about the image
\subsubsection{-watermark $<$brightness$>$x$<$saturation$>$}
percent brightness and saturation of a watermark
\subsubsection{-write $<$filename$>$}
write  an image sequence [{\it convert, composite\/}]

For a more detailed description of each option, see
{\it ImageMagick(1)\/}.



\section{Environment}
\subsubsection{DISPLAY}
To get the default host, display number, and screen.



\section{Authors}

{\it 
John Cristy, ImageMagick Studio LLC,\newline{}
Glenn Randers-Pehrson, ImageMagick Studio LLC.
\/}