blob: 300c7aa8fe02615536a720f859374dc33df53706 [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
10For more information about the mogrify command, point your browser to file://@DOCUMENTATION_PATH@/www/mogrify.html or http://www.imagemagick.org/script/mogrify.php.
11.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
cristyc9b12952010-03-28 01:12:28 +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
57 \-label string assign a label to an image
58 \-limit type value pixel cache resource limit
59 \-loop iterations add Netscape loop extension to your GIF animation
60 \-mask filename associate a mask with the image
61 \-matte store matte channel if the image has one
62 \-mattecolor color frame color
63 \-monitor monitor progress
cristy02d5b4f2010-02-01 01:08:27 +000064 \-morphology method kernel
65 apply a morphology method to the image
cristy3ed852e2009-09-05 21:47:34 +000066 \-orient type image orientation
67 \-origin geometry image origin
68 \-page geometry size and location of an image canvas (setting)
69 \-path path write images to this path on disk
70 \-ping efficiently determine image attributes
71 \-pointsize value font point size
72 \-preview type image preview type
73 \-quality value JPEG/MIFF/PNG compression level
74 \-quiet suppress all warning messages
75 \-red-primary point chromaticity red primary point
76 \-regard-warnings pay attention to warning messages
77 \-sampling-factor geometry
78 horizontal and vertical sampling factor
79 \-scene value image scene number
80 \-seed value seed a new sequence of pseudo-random numbers
81 \-size geometry width and height of image
82 \-stretch type render text with this font stretch
83 \-stroke color graphic primitive stroke color
84 \-strokewidth value graphic primitive stroke width
85 \-style type render text with this font style
86 \-support factor resize support: > 1.0 is blurry, < 1.0 is sharp
87 \-texture filename name of texture to tile onto the image background
88 \-tile-offset geometry
89 tile offset
90 \-treedepth value color tree depth
91 \-transparent-color color
92 transparent color
93 \-undercolor color annotation bounding box color
94 \-units type the units of image resolution
95 \-verbose print detailed information about the image
96 \-view FlashPix viewing transforms
97 \-virtual-pixel method
98 virtual pixel access method
99 \-weight type render text with this font weight
100 \-white-point point chromaticity white point
101
102Image Operators:
103 \-adaptive-blur geometry
104 adaptively blur pixels; decrease effect near edges
105 \-adaptive-resize geometry
106 adaptively resize image with data dependent triangulation
107 \-adaptive-sharpen geometry
108 adaptively sharpen pixels; increase effect near edges
109 \-annotate geometry text
110 annotate the image with text
111 \-auto-orient automatically orient image
112 \-black-threshold value
113 force all pixels below the threshold into black
114 \-blur geometry reduce image noise and reduce detail levels
115 \-border geometry surround image with a border of color
116 \-charcoal radius simulate a charcoal drawing
117 \-chop geometry remove pixels from the image interior
118 \-clip clip along the first path from the 8BIM profile
119 \-clip-mask filename associate a clip mask with the image
120 \-clip-path id clip along a named path from the 8BIM profile
121 \-colorize value colorize the image with the fill color
cristye6365592010-04-02 17:31:23 +0000122 \-color-matrix matrix apply color correction to the image
cristy3ed852e2009-09-05 21:47:34 +0000123 \-contrast enhance or reduce the image contrast
124 \-contrast-stretch geometry
125 improve contrast by `stretching' the intensity range
126 \-convolve coefficients
127 apply a convolution kernel to the image
128 \-cycle amount cycle the image colormap
129 \-despeckle reduce the speckles within an image
130 \-draw string annotate the image with a graphic primitive
131 \-edge radius apply a filter to detect edges in the image
132 \-emboss radius emboss an image
133 \-enhance apply a digital filter to enhance a noisy image
134 \-equalize perform histogram equalization to an image
135 \-evaluate operator value
136 evaluate an arithmetic, relational, or logical expression
137 \-extent geometry set the image size
138 \-extract geometry extract area from image
139 \-fft implements the discrete Fourier transform (DFT)
140 \-flip flip image vertically
141 \-floodfill geometry color
142 floodfill the image with color
143 \-flop flop image horizontally
144 \-frame geometry surround image with an ornamental border
145 \-gamma value level of gamma correction
146 \-gaussian-blur geometry
147 reduce image noise and reduce detail levels
cristy901f09d2009-10-16 22:56:10 +0000148 \-geometry geometry preferred size or location of the image
cristy3ed852e2009-09-05 21:47:34 +0000149 \-ift implements the inverse discrete Fourier transform (DFT)
150 \-help print program options
151 \-identify identify the format and characteristics of the image
152 \-implode amount implode image pixels about the center
153 \-lat geometry local adaptive thresholding
154 \-layers method optimize or compare image layers
155 \-level value adjust the level of image contrast
156 \-linear-stretch geometry
157 improve contrast by `stretching with saturation' the intensity range
158 \-median radius apply a median filter to the image
159 \-modulate value vary the brightness, saturation, and hue
160 \-monochrome transform image to black and white
161 \-motion-blur geometry
162 simulate motion blur
cristy2146a5f2010-02-01 01:28:35 +0000163 \-negate replace each pixel with its complementary color
cristy3ed852e2009-09-05 21:47:34 +0000164 \-noise radius add or reduce noise in an image
165 \-normalize transform image to span the full range of colors
166 \-opaque color change this color to the fill color
167 \-ordered-dither NxN
168 add a noise pattern to the image with specific amplitudes
169 \-paint radius simulate an oil painting
170 \-polaroid angle simulate a Polaroid picture
171 \-posterize levels reduce the image to a limited number of color levels
172 \-print string interpret string and print to console
173 \-profile filename add, delete, or apply an image profile
174 \-quantize colorspace reduce colors in this colorspace
175 \-radial-blur angle radial blur the image
176 \-raise value lighten/darken image edges to create a 3-D effect
177 \-random-threshold low,high
178 random threshold the image
cristy3ed852e2009-09-05 21:47:34 +0000179 \-region geometry apply options to a portion of the image
180 \-render render vector graphics
181 \-repage geometry size and location of an image canvas
182 \-resample geometry change the resolution of an image
183 \-resize geometry resize the image
184 \-roll geometry roll an image vertically or horizontally
185 \-rotate degrees apply Paeth rotation to the image
186 \-sample geometry scale image with pixel sampling
187 \-scale geometry scale the image
188 \-segment values segment an image
189 \-selective-blur geometry
190 selectively blur pixels within a contrast threshold
191 \-sepia-tone threshold
192 simulate a sepia-toned photo
193 \-set property value set an image property
194 \-shade degrees shade the image using a distant light source
195 \-shadow geometry simulate an image shadow
196 \-sharpen geometry sharpen the image
197 \-shave geometry shave pixels from the image edges
198 \-shear geometry slide one edge of the image along the X or Y axis
199 \-sigmoidal-contrast geometry
200 lightness rescaling using sigmoidal contrast enhancement
201 \-sketch geometry simulate a pencil sketch
202 \-solarize threshold negate all pixels above the threshold level
203 \-splice geometry splice the background color into the image
204 \-spread amount displace image pixels by a random amount
205 \-strip strip image of all profiles and comments
206 \-swirl degrees swirl image pixels about the center
207 \-threshold value threshold the image
208 \-thumbnail geometry create a thumbnail of the image
209 \-tile filename tile image when filling a graphic primitive
210 \-tint value tint the image with the fill color
211 \-transform affine transform image
212 \-transparent color make this color transparent within the image
213 \-transpose flip image vertically and rotate 90 degrees
214 \-transverse flop image horizontally and rotate 270 degrees
215 \-trim trim image edges
216 \-type type image type
217 \-unique-colors discard all but one of any pixel color
218 \-unsharp geometry sharpen the image
219 \-vignette geometry soften the edges of the image in vignette style
220 \-wave geometry alter an image along a sine wave
221 \-white-threshold value
222 force all pixels above the threshold into white
223
224Image Sequence Operators:
225 \-affinity filename transform image colors to match this set of colors
226 \-append append an image sequence
cristy3ed852e2009-09-05 21:47:34 +0000227 \-clut apply a color lookup table to the image
228 \-coalesce merge a sequence of images
229 \-combine combine a sequence of images
230 \-composite composite image
231 \-crop geometry cut out a rectangular region of the image
232 \-deconstruct break down an image sequence into constituent parts
cristyd18ae7c2010-03-07 17:39:52 +0000233 \-evaluate-sequence operator
234 evaluate an arithmetic, relational, or logical expression
cristy3ed852e2009-09-05 21:47:34 +0000235 \-flatten flatten a sequence of images
236 \-fx expression apply mathematical expression to an image channel(s)
237 \-hald-clut apply a Hald color lookup table to the image
238 \-morph value morph an image sequence
239 \-mosaic create a mosaic from an image sequence
240 \-process arguments process the image with a custom image filter
241 \-separate separate an image channel into a grayscale image
242 \-write filename write images to this file
243
244Image Stack Operators:
245 \-clone index clone an image
246 \-delete index delete the image from the image sequence
247 \-insert index insert last image into the image sequence
248 \-swap indexes swap two images in the image sequence
249
250Miscellaneous Options:
251 \-debug events display copious debugging information
252 \-help print program options
253 \-log format format of debugging information
254 \-list type print a list of supported option arguments
255 \-version print version information
256
257By 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.
258.SH SEE ALSO
259ImageMagick(1)
260
261.SH COPYRIGHT
262
cristy16af1cb2009-12-11 21:38:29 +0000263\fBCopyright (C) 1999-2010 ImageMagick Studio LLC. Additional copyrights and licenses apply to this software, see file://@DOCUMENTATION_PATH@/www/license.html or http://www.imagemagick.org/script/license.php\fP