| 1 |
.TH mogrify 1 "Date: 2009/01/10 01:00:00" "ImageMagick" |
| 2 |
.SH NAME |
| 3 |
mogrify \- 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 |
\fBmagick mogrify\fP [\fIoptions\fP] \fIinput-file\fP |
| 7 |
.SH OVERVIEW |
| 8 |
The \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 |
|
| 10 |
For more information about the mogrify command, point your browser to file://@DOCUMENTATION_PATH@/www/mogrify.html@EXTRA_DOC_DIR@ or https://www.imagemagick.org/script/mogrify.php. |
| 11 |
.SH DESCRIPTION |
| 12 |
Image 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 |
\-attenuate value lessen (or intensify) when adding noise to an image |
| 18 |
\-background color background color |
| 19 |
\-bias value add bias when convolving an image |
| 20 |
\-black-point-compensation |
| 21 |
use black point compensation |
| 22 |
\-blue-primary point chromaticity blue primary point |
| 23 |
\-bordercolor color border color |
| 24 |
\-caption string assign a caption to an image |
| 25 |
\-cdl filename color correct with a color decision list |
| 26 |
\-colorspace type alternate image colorspace |
| 27 |
\-comment string annotate image with comment |
| 28 |
\-compose operator set image composite operator |
| 29 |
\-compress type type of pixel compression when writing the image |
| 30 |
\-decipher filename convert cipher pixels to plain pixels |
| 31 |
\-define format:option |
| 32 |
define one or more image format options |
| 33 |
\-delay centiseconds display the next image after pausing |
| 34 |
\-density geometry horizontal and vertical density of the image |
| 35 |
\-depth value image depth |
| 36 |
\-direction type render text right-to-left or left-to-right |
| 37 |
\-display server get image or font from this X server |
| 38 |
\-dispose method layer disposal method |
| 39 |
\-dither method apply error diffusion to image |
| 40 |
\-encipher filename convert plain pixels to cipher pixels |
| 41 |
\-encoding type text encoding type |
| 42 |
\-endian type endianness (MSB or LSB) of the image |
| 43 |
\-family name render text with this font family |
| 44 |
\-features distance analyze image features (e.g. contrast, correlation) |
| 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 |
\-intensity method method to generate intensity value from pixel |
| 55 |
\-intent type type of rendering intent when managing the image color |
| 56 |
\-interlace type type of image interlacing scheme |
| 57 |
\-interline-spacing value set the space between two text lines |
| 58 |
\-interpolate method pixel color interpolation method |
| 59 |
\-interword-spacing value set the space between two words |
| 60 |
\-kerning value set the space between two letters |
| 61 |
\-label string assign a label to an image |
| 62 |
\-limit type value pixel cache resource limit |
| 63 |
\-loop iterations add Netscape loop extension to your GIF animation |
| 64 |
\-matte store matte channel if the image has one |
| 65 |
\-mattecolor color frame color |
| 66 |
\-metric type measure differences between images with this metric |
| 67 |
\-monitor monitor progress |
| 68 |
\-morphology method kernel |
| 69 |
apply a morphology method to the image |
| 70 |
\-orient type image orientation |
| 71 |
\-page geometry size and location of an image canvas (setting) |
| 72 |
\-path path write images to this path on disk |
| 73 |
\-perceptible epsilon |
| 74 |
pixel value less than |epsilon| become epsilon or -epsilon |
| 75 |
\-ping efficiently determine image attributes |
| 76 |
\-pointsize value font point size |
| 77 |
\-precision value maximum number of significant digits to print |
| 78 |
\-preview type image preview type |
| 79 |
\-quality value JPEG/MIFF/PNG compression level |
| 80 |
\-quiet suppress all warning messages |
| 81 |
\-read-mask filename associate a read mask with the image |
| 82 |
\-red-primary point chromaticity red primary point |
| 83 |
\-regard-warnings pay attention to warning messages |
| 84 |
\-remap filename transform image colors to match this set of colors |
| 85 |
\-repage geometry size and location of an image canvas |
| 86 |
\-respect-parentheses settings remain in effect until parenthesis boundary |
| 87 |
\-sampling-factor geometry |
| 88 |
horizontal and vertical sampling factor |
| 89 |
\-scene value image scene number |
| 90 |
\-seed value seed a new sequence of pseudo-random numbers |
| 91 |
\-size geometry width and height of image |
| 92 |
\-stretch type render text with this font stretch |
| 93 |
\-stroke color graphic primitive stroke color |
| 94 |
\-strokewidth value graphic primitive stroke width |
| 95 |
\-style type render text with this font style |
| 96 |
\-synchronize synchronize image to storage device |
| 97 |
\-taint declare the image as modified |
| 98 |
\-texture filename name of texture to tile onto the image background |
| 99 |
\-tile-offset geometry |
| 100 |
tile offset |
| 101 |
\-treedepth value color tree depth |
| 102 |
\-transparent-color color |
| 103 |
transparent color |
| 104 |
\-undercolor color annotation bounding box color |
| 105 |
\-units type the units of image resolution |
| 106 |
\-verbose print detailed information about the image |
| 107 |
\-virtual-pixel method |
| 108 |
virtual pixel access method |
| 109 |
\-weight type render text with this font weight |
| 110 |
\-white-point point chromaticity white point |
| 111 |
\-write-mask filename associate a write mask with the image |
| 112 |
|
| 113 |
Image Operators: |
| 114 |
\-adaptive-blur geometry |
| 115 |
adaptively blur pixels; decrease effect near edges |
| 116 |
\-adaptive-resize geometry |
| 117 |
adaptively resize image with data dependent triangulation |
| 118 |
\-adaptive-sharpen geometry |
| 119 |
adaptively sharpen pixels; increase effect near edges |
| 120 |
\-alpha option on, activate, off, deactivate, set, opaque, copy |
| 121 |
transparent, extract, background, or shape |
| 122 |
\-annotate geometry text |
| 123 |
annotate the image with text |
| 124 |
\-auto-gamma automagically adjust gamma level of image |
| 125 |
\-auto-level automagically adjust color levels of image |
| 126 |
\-auto-orient automatically orient image |
| 127 |
\-auto-threshold method |
| 128 |
automatically perform image thresholding |
| 129 |
\-bench iterations measure performance |
| 130 |
\-bilateral-blur geometry |
| 131 |
non-linear, edge-preserving, and noise-reducing smoothing filter |
| 132 |
\-black-threshold value |
| 133 |
force all pixels below the threshold into black |
| 134 |
\-blue-shift simulate a scene at nighttime in the moonlight |
| 135 |
\-blur geometry reduce image noise and reduce detail levels |
| 136 |
\-border geometry surround image with a border of color |
| 137 |
\-brightness-contrast geometry |
| 138 |
improve brightness / contrast of the image |
| 139 |
\-canny geometry detect edges in the image |
| 140 |
\-channel mask set the image channel mask |
| 141 |
\-charcoal radius simulate a charcoal drawing |
| 142 |
\-chop geometry remove pixels from the image interior |
| 143 |
\-clahe geometry contrast limited adaptive histogram equalization |
| 144 |
\-clamp keep pixel values in range (0-QuantumRange) |
| 145 |
\-clip clip along the first path from the 8BIM profile |
| 146 |
\-clip-mask filename associate a clip mask with the image |
| 147 |
\-clip-path id clip along a named path from the 8BIM profile |
| 148 |
\-colorize value colorize the image with the fill color |
| 149 |
\-color-matrix matrix apply color correction to the image |
| 150 |
\-colors value preferred number of colors in the image |
| 151 |
\-color-threshold start_color-stop_color |
| 152 |
force all pixels in the color range to white otherwise black |
| 153 |
\-connected-component connectivity |
| 154 |
connected-components uniquely labeled |
| 155 |
\-contrast enhance or reduce the image contrast |
| 156 |
\-contrast-stretch geometry |
| 157 |
improve contrast by `stretching' the intensity range |
| 158 |
\-convolve coefficients |
| 159 |
apply a convolution kernel to the image |
| 160 |
\-cycle amount cycle the image colormap |
| 161 |
\-deskew threshold straighten an image |
| 162 |
\-despeckle reduce the speckles within an image |
| 163 |
\-distort method args |
| 164 |
distort images according to given method and args |
| 165 |
\-draw string annotate the image with a graphic primitive |
| 166 |
\-edge radius apply a filter to detect edges in the image |
| 167 |
\-emboss radius emboss an image |
| 168 |
\-enhance apply a digital filter to enhance a noisy image |
| 169 |
\-equalize perform histogram equalization to an image |
| 170 |
\-evaluate operator value |
| 171 |
evaluate an arithmetic, relational, or logical expression |
| 172 |
\-extent geometry set the image size |
| 173 |
\-extract geometry extract area from image |
| 174 |
\-fft implements the discrete Fourier transform (DFT) |
| 175 |
\-flip flip image vertically |
| 176 |
\-floodfill geometry color |
| 177 |
floodfill the image with color |
| 178 |
\-flop flop image horizontally |
| 179 |
\-frame geometry surround image with an ornamental border |
| 180 |
\-gamma value level of gamma correction |
| 181 |
\-gaussian-blur geometry |
| 182 |
reduce image noise and reduce detail levels |
| 183 |
\-geometry geometry preferred size or location of the image |
| 184 |
\-grayscale method convert image to grayscale |
| 185 |
\-help print program options |
| 186 |
\-hough-lines geometry |
| 187 |
identify lines in the image |
| 188 |
\-identify identify the format and characteristics of the image |
| 189 |
\-ift implements the inverse discrete Fourier transform (DFT) |
| 190 |
\-implode amount implode image pixels about the center |
| 191 |
\-integral calculate the sum of values (pixel values) in the image |
| 192 |
\-interpolative-resize geometry |
| 193 |
resize image using interpolation |
| 194 |
\-kmeans geometry K means color reduction |
| 195 |
\-lat geometry local adaptive thresholding |
| 196 |
\-layers method optimize or compare image layers |
| 197 |
\-level value adjust the level of image contrast |
| 198 |
\-level-colors color,color |
| 199 |
level image with the given colors |
| 200 |
\-linear-stretch geometry |
| 201 |
improve contrast by `stretching with saturation' the intensity range |
| 202 |
\-liquid-rescale geometry |
| 203 |
rescale image with seam-carving |
| 204 |
\-magnify double the size of the image with pixel art scaling |
| 205 |
\-mean-shift geometry delineate arbitrarily shaped clusters in the image |
| 206 |
\-median geometry apply a median filter to the image |
| 207 |
\-mode geometry make each pixel the 'predominant color' of the neighborhood |
| 208 |
\-modulate value vary the brightness, saturation, and hue |
| 209 |
\-monochrome transform image to black and white |
| 210 |
\-motion-blur geometry |
| 211 |
simulate motion blur |
| 212 |
\-negate replace each pixel with its complementary color |
| 213 |
\-noise geometry add or reduce noise in an image |
| 214 |
\-normalize transform image to span the full range of colors |
| 215 |
\-opaque color change this color to the fill color |
| 216 |
\-ordered-dither NxN |
| 217 |
add a noise pattern to the image with specific amplitudes |
| 218 |
\-paint radius simulate an oil painting |
| 219 |
\-polaroid angle simulate a Polaroid picture |
| 220 |
\-posterize levels reduce the image to a limited number of color levels |
| 221 |
\-print string interpret string and print to console |
| 222 |
\-profile filename add, delete, or apply an image profile |
| 223 |
\-quantize colorspace reduce colors in this colorspace |
| 224 |
\-radial-blur angle radial blur the image |
| 225 |
\-raise value lighten/darken image edges to create a 3-D effect |
| 226 |
\-random-threshold low,high |
| 227 |
random threshold the image |
| 228 |
\-range-threshold values |
| 229 |
perform either hard or soft thresholding within some range of values in an image |
| 230 |
\-region geometry apply options to a portion of the image |
| 231 |
\-render render vector graphics |
| 232 |
\-resample geometry change the resolution of an image |
| 233 |
\-resize geometry resize the image |
| 234 |
\-roll geometry roll an image vertically or horizontally |
| 235 |
\-rotate degrees apply Paeth rotation to the image |
| 236 |
\-sample geometry scale image with pixel sampling |
| 237 |
\-scale geometry scale the image |
| 238 |
\-segment values segment an image |
| 239 |
\-selective-blur geometry |
| 240 |
selectively blur pixels within a contrast threshold |
| 241 |
\-sepia-tone threshold |
| 242 |
simulate a sepia-toned photo |
| 243 |
\-set property value set an image property |
| 244 |
\-shade degrees shade the image using a distant light source |
| 245 |
\-shadow geometry simulate an image shadow |
| 246 |
\-sharpen geometry sharpen the image |
| 247 |
\-shave geometry shave pixels from the image edges |
| 248 |
\-shear geometry slide one edge of the image along the X or Y axis |
| 249 |
\-sigmoidal-contrast geometry |
| 250 |
lightness rescaling using sigmoidal contrast enhancement |
| 251 |
\-sketch geometry simulate a pencil sketch |
| 252 |
\-solarize threshold negate all pixels above the threshold level |
| 253 |
\-sort-pixels sort each scanline in ascending order of intensity |
| 254 |
\-sparse-color method args |
| 255 |
fill in a image based on a few color points |
| 256 |
\-splice geometry splice the background color into the image |
| 257 |
\-spread amount displace image pixels by a random amount |
| 258 |
\-statistic type geometry |
| 259 |
replace each pixel with corresponding statistic from the neighborhood |
| 260 |
\-strip strip image of all profiles and comments |
| 261 |
\-swirl degrees swirl image pixels about the center |
| 262 |
\-threshold value threshold the image |
| 263 |
\-thumbnail geometry create a thumbnail of the image |
| 264 |
\-tile filename tile image when filling a graphic primitive |
| 265 |
\-tint value tint the image with the fill color |
| 266 |
\-transform affine transform image |
| 267 |
\-transparent color make this color transparent within the image |
| 268 |
\-transpose flip image vertically and rotate 90 degrees |
| 269 |
\-transverse flop image horizontally and rotate 270 degrees |
| 270 |
\-trim trim image edges |
| 271 |
\-type type image type |
| 272 |
\-unique-colors discard all but one of any pixel color |
| 273 |
\-unsharp geometry sharpen the image |
| 274 |
\-vignette geometry soften the edges of the image in vignette style |
| 275 |
\-wave geometry alter an image along a sine wave |
| 276 |
\-wavelet-denoise threshold |
| 277 |
removes noise from the image using a wavelet transform |
| 278 |
\-white-balance automagically adjust white balance of image |
| 279 |
\-white-threshold value |
| 280 |
force all pixels above the threshold into white |
| 281 |
|
| 282 |
Image Channel Operators: |
| 283 |
\-channel-fx expression |
| 284 |
exchange, extract, or transfer one or more image channels |
| 285 |
\-separate separate an image channel into a grayscale image |
| 286 |
|
| 287 |
Image Sequence Operators: |
| 288 |
\-affinity filename transform image colors to match this set of colors |
| 289 |
\-append append an image sequence top to botto (use +append for left to right) |
| 290 |
\-clut apply a color lookup table to the image |
| 291 |
\-coalesce merge a sequence of images |
| 292 |
\-combine combine a sequence of images |
| 293 |
\-compare mathematically and visually annotate the difference between an image and its reconstruction |
| 294 |
\-complex operator perform complex mathematics on an image sequence |
| 295 |
\-composite composite image |
| 296 |
\-copy geometry offset, |
| 297 |
copy pixels from one area of an image to another |
| 298 |
\-crop geometry cut out a rectangular region of the image |
| 299 |
\-deconstruct break down an image sequence into constituent parts |
| 300 |
\-evaluate-sequence operator |
| 301 |
evaluate an arithmetic, relational, or logical expression |
| 302 |
\-flatten flatten a sequence of images |
| 303 |
\-fx expression apply mathematical expression to an image channel(s) |
| 304 |
\-hald-clut apply a Hald color lookup table to the image |
| 305 |
\-morph value morph an image sequence |
| 306 |
\-mosaic create a mosaic from an image sequence |
| 307 |
\-poly terms build a polynomial from the image sequence and the corresponding terms (coefficients and degree pairs) |
| 308 |
\-process arguments process the image with a custom image filter |
| 309 |
\-separate separate an image channel into a grayscale image |
| 310 |
\-smush geometry smush an image sequence together |
| 311 |
\-write filename write images to this file |
| 312 |
|
| 313 |
Image Stack Operators: |
| 314 |
\-delete indexes delete the image from the image sequence |
| 315 |
\-duplicate count,indexes |
| 316 |
duplicate an image one or more times |
| 317 |
\-insert index insert last image into the image sequence |
| 318 |
\-reverse reverse image sequence |
| 319 |
\-swap indexes swap two images in the image sequence |
| 320 |
|
| 321 |
Miscellaneous Options: |
| 322 |
\-debug events display copious debugging information |
| 323 |
\-distribute-cache port |
| 324 |
distributed pixel cache spanning one or more servers |
| 325 |
\-help print program options |
| 326 |
\-log format format of debugging information |
| 327 |
\-list type print a list of supported option arguments |
| 328 |
\-version print version information |
| 329 |
|
| 330 |
By 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. |
| 331 |
.SH SEE ALSO |
| 332 |
ImageMagick(1) |
| 333 |
|
| 334 |
.SH COPYRIGHT |
| 335 |
|
| 336 |
\fBCopyright (C) 1999 ImageMagick Studio LLC. Additional copyrights and licenses apply to this software, see file://@DOCUMENTATION_PATH@/www/license.html@EXTRA_DOC_DIR@ or https://www.imagemagick.org/script/license.php\fP |