blob: 3f289527cece8a3b4a444ca38c5361b0ef6717b3 [file] [log] [blame]
cristy3ed852e2009-09-05 21:47:34 +00001.TH mogrify 1 "Date: 2009/01/10 01:00:00" "ImageMagick"
2.SH NAME
3mogrify \- resize an image, blur, crop, despeckle, dither, draw on, flip, join, re-sample, and much more. Mogrify overwrites the original image file, whereas, convert(1) writes to a different image file.
4.SH SYNOPSIS
5.TP
6\fBmogrify\fP [\fIoptions\fP] \fIinput-file\fP
7.SH OVERVIEW
8The \fBmogrify\fP program is a member of the ImageMagick(1) suite of tools. Use it to resize an image, blur, crop, despeckle, dither, draw on, flip, join, re-sample, and much more. This tool is similar to convert(1) except the original image file is overwritten with any changes you request.
9
cristy2e2662a2010-10-09 14:29:37 +000010For more information about the mogrify command, point your browser to file:///usr/local/share/doc/ImageMagick-6.6.5/www/mogrify.html or http://www.imagemagick.org/script/mogrify.php.
cristy3ed852e2009-09-05 21:47:34 +000011.SH DESCRIPTION
12Image Settings:
13 \-adjoin join images into a single multi-image file
14 \-affine matrix affine transform matrix
15 \-antialias remove pixel-aliasing
16 \-authenticate value decrypt image with this password
17 \-background color background color
18 \-bias value add bias when convolving an image
19 \-black-point-compensation
20 use black point compensation
21 \-blue-primary point chromaticity blue primary point
22 \-bordercolor color border color
23 \-caption string assign a caption to an image
24 \-cdl filename color correct with a color decision list
25 \-channel type apply option to select image channels
26 \-colors value preferred number of colors in the image
27 \-colorspace type alternate image colorspace
28 \-comment string annotate image with comment
29 \-compose operator set image composite operator
30 \-compress type type of pixel compression when writing the image
31 \-decipher filename convert cipher pixels to plain pixels
32 \-define format:option
33 define one or more image format options
34 \-delay value display the next image after pausing
35 \-density geometry horizontal and vertical density of the image
36 \-depth value image depth
cristy735e8942010-04-02 20:32:57 +000037 \-direction type render text right-to-left or left-to-right
cristy3ed852e2009-09-05 21:47:34 +000038 \-display server get image or font from this X server
39 \-dispose method layer disposal method
40 \-dither method apply error diffusion to image
41 \-encipher filename convert plain pixels to cipher pixels
42 \-encoding type text encoding type
43 \-endian type endianness (MSB or LSB) of the image
44 \-family name render text with this font family
45 \-fill color color to use when filling a graphic primitive
46 \-filter type use this filter when resizing an image
47 \-flatten flatten a sequence of images
48 \-font name render text with this font
49 \-format type image format type
50 \-function name apply a function to the image
51 \-fuzz distance colors within this distance are considered equal
52 \-gravity type horizontal and vertical text placement
53 \-green-primary point chromaticity green primary point
54 \-intent type type of rendering intent when managing the image color
55 \-interlace type type of image interlacing scheme
56 \-interpolate method pixel color interpolation method
cristydbcce092010-08-01 18:12:50 +000057 \-kerning value set the space between two letters
cristy3ed852e2009-09-05 21:47:34 +000058 \-label string assign a label to an image
59 \-limit type value pixel cache resource limit
60 \-loop iterations add Netscape loop extension to your GIF animation
61 \-mask filename associate a mask with the image
62 \-matte store matte channel if the image has one
63 \-mattecolor color frame color
64 \-monitor monitor progress
cristy150989e2010-02-01 14:59:39 +000065 \-morphology method kernel
66 apply a morphology method to the image
cristy3ed852e2009-09-05 21:47:34 +000067 \-orient type image orientation
68 \-origin geometry image origin
69 \-page geometry size and location of an image canvas (setting)
70 \-path path write images to this path on disk
71 \-ping efficiently determine image attributes
72 \-pointsize value font point size
73 \-preview type image preview type
74 \-quality value JPEG/MIFF/PNG compression level
75 \-quiet suppress all warning messages
76 \-red-primary point chromaticity red primary point
77 \-regard-warnings pay attention to warning messages
78 \-sampling-factor geometry
79 horizontal and vertical sampling factor
80 \-scene value image scene number
81 \-seed value seed a new sequence of pseudo-random numbers
82 \-size geometry width and height of image
83 \-stretch type render text with this font stretch
84 \-stroke color graphic primitive stroke color
85 \-strokewidth value graphic primitive stroke width
86 \-style type render text with this font style
87 \-support factor resize support: > 1.0 is blurry, < 1.0 is sharp
88 \-texture filename name of texture to tile onto the image background
89 \-tile-offset geometry
90 tile offset
91 \-treedepth value color tree depth
92 \-transparent-color color
93 transparent color
94 \-undercolor color annotation bounding box color
95 \-units type the units of image resolution
96 \-verbose print detailed information about the image
97 \-view FlashPix viewing transforms
98 \-virtual-pixel method
99 virtual pixel access method
100 \-weight type render text with this font weight
101 \-white-point point chromaticity white point
102
103Image Operators:
104 \-adaptive-blur geometry
105 adaptively blur pixels; decrease effect near edges
106 \-adaptive-resize geometry
107 adaptively resize image with data dependent triangulation
108 \-adaptive-sharpen geometry
109 adaptively sharpen pixels; increase effect near edges
110 \-annotate geometry text
111 annotate the image with text
112 \-auto-orient automatically orient image
113 \-black-threshold value
114 force all pixels below the threshold into black
115 \-blur geometry reduce image noise and reduce detail levels
116 \-border geometry surround image with a border of color
117 \-charcoal radius simulate a charcoal drawing
118 \-chop geometry remove pixels from the image interior
119 \-clip clip along the first path from the 8BIM profile
120 \-clip-mask filename associate a clip mask with the image
121 \-clip-path id clip along a named path from the 8BIM profile
122 \-colorize value colorize the image with the fill color
cristy735e8942010-04-02 20:32:57 +0000123 \-color-matrix matrix apply color correction to the image
cristy3ed852e2009-09-05 21:47:34 +0000124 \-contrast enhance or reduce the image contrast
125 \-contrast-stretch geometry
126 improve contrast by `stretching' the intensity range
127 \-convolve coefficients
128 apply a convolution kernel to the image
129 \-cycle amount cycle the image colormap
130 \-despeckle reduce the speckles within an image
131 \-draw string annotate the image with a graphic primitive
132 \-edge radius apply a filter to detect edges in the image
133 \-emboss radius emboss an image
134 \-enhance apply a digital filter to enhance a noisy image
135 \-equalize perform histogram equalization to an image
136 \-evaluate operator value
137 evaluate an arithmetic, relational, or logical expression
138 \-extent geometry set the image size
139 \-extract geometry extract area from image
140 \-fft implements the discrete Fourier transform (DFT)
141 \-flip flip image vertically
142 \-floodfill geometry color
143 floodfill the image with color
144 \-flop flop image horizontally
145 \-frame geometry surround image with an ornamental border
146 \-gamma value level of gamma correction
147 \-gaussian-blur geometry
148 reduce image noise and reduce detail levels
cristy901f09d2009-10-16 22:56:10 +0000149 \-geometry geometry preferred size or location of the image
cristy3ed852e2009-09-05 21:47:34 +0000150 \-ift implements the inverse discrete Fourier transform (DFT)
151 \-help print program options
152 \-identify identify the format and characteristics of the image
153 \-implode amount implode image pixels about the center
154 \-lat geometry local adaptive thresholding
155 \-layers method optimize or compare image layers
156 \-level value adjust the level of image contrast
157 \-linear-stretch geometry
158 improve contrast by `stretching with saturation' the intensity range
159 \-median radius apply a median filter to the image
160 \-modulate value vary the brightness, saturation, and hue
161 \-monochrome transform image to black and white
162 \-motion-blur geometry
163 simulate motion blur
cristy2146a5f2010-02-01 01:28:35 +0000164 \-negate replace each pixel with its complementary color
cristy3ed852e2009-09-05 21:47:34 +0000165 \-noise radius add or reduce noise in an image
166 \-normalize transform image to span the full range of colors
167 \-opaque color change this color to the fill color
168 \-ordered-dither NxN
169 add a noise pattern to the image with specific amplitudes
170 \-paint radius simulate an oil painting
171 \-polaroid angle simulate a Polaroid picture
172 \-posterize levels reduce the image to a limited number of color levels
173 \-print string interpret string and print to console
174 \-profile filename add, delete, or apply an image profile
175 \-quantize colorspace reduce colors in this colorspace
176 \-radial-blur angle radial blur the image
177 \-raise value lighten/darken image edges to create a 3-D effect
178 \-random-threshold low,high
179 random threshold the image
cristy3ed852e2009-09-05 21:47:34 +0000180 \-region geometry apply options to a portion of the image
181 \-render render vector graphics
182 \-repage geometry size and location of an image canvas
183 \-resample geometry change the resolution of an image
184 \-resize geometry resize the image
185 \-roll geometry roll an image vertically or horizontally
186 \-rotate degrees apply Paeth rotation to the image
187 \-sample geometry scale image with pixel sampling
188 \-scale geometry scale the image
189 \-segment values segment an image
190 \-selective-blur geometry
191 selectively blur pixels within a contrast threshold
192 \-sepia-tone threshold
193 simulate a sepia-toned photo
194 \-set property value set an image property
195 \-shade degrees shade the image using a distant light source
196 \-shadow geometry simulate an image shadow
197 \-sharpen geometry sharpen the image
198 \-shave geometry shave pixels from the image edges
199 \-shear geometry slide one edge of the image along the X or Y axis
200 \-sigmoidal-contrast geometry
201 lightness rescaling using sigmoidal contrast enhancement
202 \-sketch geometry simulate a pencil sketch
203 \-solarize threshold negate all pixels above the threshold level
204 \-splice geometry splice the background color into the image
205 \-spread amount displace image pixels by a random amount
206 \-strip strip image of all profiles and comments
207 \-swirl degrees swirl image pixels about the center
208 \-threshold value threshold the image
209 \-thumbnail geometry create a thumbnail of the image
210 \-tile filename tile image when filling a graphic primitive
211 \-tint value tint the image with the fill color
212 \-transform affine transform image
213 \-transparent color make this color transparent within the image
214 \-transpose flip image vertically and rotate 90 degrees
215 \-transverse flop image horizontally and rotate 270 degrees
216 \-trim trim image edges
217 \-type type image type
218 \-unique-colors discard all but one of any pixel color
219 \-unsharp geometry sharpen the image
220 \-vignette geometry soften the edges of the image in vignette style
221 \-wave geometry alter an image along a sine wave
222 \-white-threshold value
223 force all pixels above the threshold into white
224
225Image Sequence Operators:
226 \-affinity filename transform image colors to match this set of colors
cristy3df34d62010-09-14 18:38:51 +0000227 \-append append an image sequence top to botto (use +append for left to right)
cristy3ed852e2009-09-05 21:47:34 +0000228 \-clut apply a color lookup table to the image
229 \-coalesce merge a sequence of images
230 \-combine combine a sequence of images
231 \-composite composite image
232 \-crop geometry cut out a rectangular region of the image
233 \-deconstruct break down an image sequence into constituent parts
cristy63fed272010-03-07 19:08:45 +0000234 \-evaluate-sequence operator
235 evaluate an arithmetic, relational, or logical expression
cristy3ed852e2009-09-05 21:47:34 +0000236 \-flatten flatten a sequence of images
237 \-fx expression apply mathematical expression to an image channel(s)
238 \-hald-clut apply a Hald color lookup table to the image
239 \-morph value morph an image sequence
240 \-mosaic create a mosaic from an image sequence
241 \-process arguments process the image with a custom image filter
242 \-separate separate an image channel into a grayscale image
243 \-write filename write images to this file
244
245Image Stack Operators:
246 \-clone index clone an image
247 \-delete index delete the image from the image sequence
248 \-insert index insert last image into the image sequence
249 \-swap indexes swap two images in the image sequence
250
251Miscellaneous Options:
252 \-debug events display copious debugging information
253 \-help print program options
254 \-log format format of debugging information
255 \-list type print a list of supported option arguments
256 \-version print version information
257
258By default, the image format of `file' is determined by its magic number. To specify a particular image format, precede the filename with an image format name and a colon (i.e. ps:image) or specify the image type as the filename suffix (i.e. image.ps). Specify 'file' as '-' for standard input or output.
259.SH SEE ALSO
260ImageMagick(1)
261
262.SH COPYRIGHT
263
cristy2e2662a2010-10-09 14:29:37 +0000264\fBCopyright (C) 1999-2010 ImageMagick Studio LLC. Additional copyrights and licenses apply to this software, see file:///usr/local/share/doc/ImageMagick-6.6.5/www/license.html or http://www.imagemagick.org/script/license.php\fP