mogrify-im7.q16hdri(1)
โจ NAME โจ
okay so mogrify โ she resizes an image, blurs, crops, despeckles, dithers, draws on, flips, joins, re-samples, and honestly does so much more. ๐
the one thing you HAVE to know before you touch her: mogrify overwrites the original image file, whereas convert-im7.q16hdri(1) writes to a different image file. that's the whole personality. she edits in place, no take-backsies ๐
๐ธ SYNOPSIS ๐ธ
magick-im7.q16hdri mogrify [options] input-file
๐ฆ OVERVIEW ๐ฆ
mogrify-im7.q16hdri is a member of the ImageMagick-ims7.q16hdri(1) suite of tools. use her to resize an image, blur, crop, despeckle, dither, draw on, flip, join, re-sample, and much more.
this tool is similar to convert-im7.q16hdri(1) except โ and this is the part that eats, bestie โ the original image file is overwritten with any changes you request. ๐ฅ
for more information about the mogrify command, point your browser to file:///usr/share/doc/imagemagick-7-common/html/www/mogrify.html (on debian system you may install the imagemagick-7 package) or https://www.imagemagick.org/script/mogrify.php. ๐
๐ DESCRIPTION ๐
๐ Image Settings ๐
this is the settings block, the whole wardrobe, the fit check. every single one, no skips โจ
-adjoinโ join images into a single multi-image file-affinematrix โ affine transform matrix-antialiasโ remove pixel-aliasing-authenticatevalue โ decrypt image with this password-attenuatevalue โ lessen (or intensify) when adding noise to an image-backgroundcolor โ background color-biasvalue โ add bias when convolving an image-black-point-compensationโ use black point compensation-blue-primarypoint โ chromaticity blue primary point-bordercolorcolor โ border color-captionstring โ assign a caption to an image-cdlfilename โ color correct with a color decision list-colorspacetype โ alternate image colorspace-commentstring โ annotate image with comment-composeoperator โ set image composite operator-compresstype โ type of pixel compression when writing the image-decipherfilename โ convert cipher pixels to plain pixels-defineformat:option โ define one or more image format options-delaycentiseconds โ display the next image after pausing-densitygeometry โ horizontal and vertical density of the image-depthvalue โ image depth-directiontype โ render text right-to-left or left-to-right-displayserver โ get image or font from this X server-disposemethod โ layer disposal method-dithermethod โ apply error diffusion to image-encipherfilename โ convert plain pixels to cipher pixels-encodingtype โ text encoding type-endiantype โ endianness (MSB or LSB) of the image-familyname โ render text with this font family-featuresdistance โ analyze image features (e.g. contrast, correlation)-fillcolor โ color to use when filling a graphic primitive-filtertype โ use this filter when resizing an image-flattenโ flatten a sequence of images-fontname โ render text with this font-formattype โ image format type-functionname โ apply a function to the image-fuzzdistance โ colors within this distance are considered equal-gravitytype โ horizontal and vertical text placement-green-primarypoint โ chromaticity green primary point-intensitymethod โ method to generate intensity value from pixel-intenttype โ type of rendering intent when managing the image color-interlacetype โ type of image interlacing scheme-interline-spacingvalue โ set the space between two text lines-interpolatemethod โ pixel color interpolation method-interword-spacingvalue โ set the space between two words-kerningvalue โ set the space between two letters-labelstring โ assign a label to an image-limittype value โ pixel cache resource limit-loopiterations โ add Netscape loop extension to your GIF animation-matteโ store matte channel if the image has one-mattecolorcolor โ frame color-metrictype โ measure differences between images with this metric-monitorโ monitor progress-morphologymethod kernel โ apply a morphology method to the image-orienttype โ image orientation-pagegeometry โ size and location of an image canvas (setting)-pathpath โ write images to this path on disk-perceptibleepsilon โ pixel value less than |epsilon| become epsilon or-epsilon-pingโ efficiently determine image attributes-pointsizevalue โ font point size-precisionvalue โ maximum number of significant digits to print-previewtype โ image preview type-qualityvalue โ JPEG/MIFF/PNG compression level-quietโ suppress all warning messages-read-maskfilename โ associate a read mask with the image-red-primarypoint โ chromaticity red primary point-regard-warningsโ pay attention to warning messages-remapfilename โ transform image colors to match this set of colors-repagegeometry โ size and location of an image canvas-respect-parenthesesโ settings remain in effect until parenthesis boundary-sampling-factorgeometry โ horizontal and vertical sampling factor-scenevalue โ image scene number-seedvalue โ seed a new sequence of pseudo-random numbers-sizegeometry โ width and height of image-stretchtype โ render text with this font stretch-strokecolor โ graphic primitive stroke color-strokewidthvalue โ graphic primitive stroke width-styletype โ render text with this font style-synchronizeโ synchronize image to storage device-taintโ declare the image as modified-texturefilename โ name of texture to tile onto the image background-tile-offsetgeometry โ tile offset-treedepthvalue โ color tree depth-transparent-colorcolor โ transparent color-undercolorcolor โ annotation bounding box color-unitstype โ the units of image resolution-verboseโ print detailed information about the image-virtual-pixelmethod โ virtual pixel access method-weighttype โ render text with this font weight-white-pointpoint โ chromaticity white point-write-maskfilename โ associate a write mask with the image
โจ Image Operators โจ
okay bestie, this is the big one โ every image operator, all lined up. No cap, no skips. ๐
-adaptive-blur geometryโ adaptively blur pixels; decrease effect near edges. It's giving soft-focus-but-only-where-it-matters energy. โจ-adaptive-resize geometryโ adaptively resize image with data dependent triangulation. Lowkey fancy resize, fr fr. ๐ฆ-adaptive-sharpen geometryโ adaptively sharpen pixels; increase effect near edges. The way it just knows where to crisp things up. ๐ฅ-alpha optionโ on, activate, off, deactivate, set, opaque, copy transparent, extract, background, or shape. All the alpha moods, bestie. ๐-annotate geometry textโ annotate the image with text. Put your name on it, main character style. ๐-auto-gammaโ automagically adjust gamma level of image. Automagically, yes that's the word. โจ-auto-levelโ automagically adjust color levels of image. Let it do the leveling for you. ๐-auto-orientโ automatically orient image. No more sideways selfies. ๐-auto-threshold methodโ automatically perform image thresholding. Threshold, but make it automatic. โญ-bench iterationsโ measure performance. Speed test for your pixels. โฑ๏ธ-bilateral-blur geometryโ non-linear, edge-preserving, and noise-reducing smoothing filter. Smooth but keep the edges, iykyk. ๐ง-black-threshold valueโ force all pixels below the threshold into black. Below the line? Straight to black. ๐-blue-shiftโ simulate a scene at nighttime in the moonlight. Moonlight vibes only. ๐-blur geometryโ reduce image noise and reduce detail levels. Soft blur, less detail, no thoughts. โ๏ธ-border geometryโ surround image with a border of color. Frame it up, bestie. ๐ผ๏ธ-brightness-contrast geometryโ improve brightness / contrast of the image. Glow-up for your pic. โจ-canny geometryโ detect edges in the image. Edge detection, but make it Canny. ๐-channel maskโ set the image channel mask. Mask on, mask off. ๐ญ-charcoal radiusโ simulate a charcoal drawing. Art class but make it digital. ๐จ-chop geometryโ remove pixels from the image interior. Chop chop, interior edition. โ๏ธ-clahe geometryโ contrast limited adaptive histogram equalization. Say that five times fast. ๐ญ-clampโ keep pixel values in range (0-QuantumRange). Stay in your lane, pixels. ๐ซถ-clipโ clip along the first path from the 8BIM profile. 8BIM path? Clipped. ๐-clip-mask filenameโ associate a clip mask with the image. Mask + image = besties. ๐-clip-path idโ clip along a named path from the 8BIM profile. Named path, clipped path. ๐ฆ-colorize valueโ colorize the image with the fill color. Fill color goes brrr. ๐-color-matrix matrixโ apply color correction to the image. Matrix math but make it fashion. ๐-colors valueโ preferred number of colors in the image. You get this many colors, periodt. ๐จ-color-threshold start_color-stop_colorโ force all pixels in the color range to white otherwise black. In range? White. Out of range? Black. No in-between. โซโช-connected-component connectivityโ connected-components uniquely labeled. Labeling the connected girlies. ๐-contrastโ enhance or reduce the image contrast. More contrast, less contrast, your call. ๐ฅ-contrast-stretch geometryโ improve contrast by `stretching' the intensity range. Stretch it out. ๐ง-convolve coefficientsโ apply a convolution kernel to the image. Kernel goes convolve. ๐-cycle amountโ cycle the image colormap. Round and round the colors go. ๐-deskew thresholdโ straighten an image. Fix that tilt, bestie. ๐-despeckleโ reduce the speckles within an image. Speckles? Not today. โจ-distort method argsโ distort images according to given method and args. Warp it, twist it, distort it. ๐-draw stringโ annotate the image with a graphic primitive. Draw something iconic. ๐๏ธ-edge radiusโ apply a filter to detect edges in the image. Edges found. ๐-emboss radiusโ emboss an image. Raised edges, fancy vibe. ๐๏ธ-enhanceโ apply a digital filter to enhance a noisy image. Noisy? Enhanced. ๐ฅ-equalizeโ perform histogram equalization to an image. Equalize the histogram, slay. ๐-evaluate operator valueโ evaluate an arithmetic, relational, or logical expression. Math but make it image. ๐งฎ-extent geometryโ set the image size. Size matters, okay? ๐-extract geometryโ extract area from image. Snip snip, just that area. โ๏ธ-fftโ implements the discrete Fourier transform (DFT). Fourier transform, no cap. ๐-flipโ flip image vertically. Upside down, but vertically. ๐-floodfill geometry colorโ floodfill the image with color. Flood it with color, bestie. ๐-flopโ flop image horizontally. Sideways flip, horizontally. ๐-frame geometryโ surround image with an ornamental border. Ornamental border? Fancy. ๐ผ๏ธ-gamma valueโ level of gamma correction. Gamma correction level: yes. โจ-gaussian-blur geometryโ reduce image noise and reduce detail levels. Gaussian blur, classic. โ๏ธ-geometry geometryโ preferred size or location of the image. Preferred size or location, your choice. ๐-grayscale methodโ convert image to grayscale. Gray is a vibe too. ๐ฉถ-helpโ print program options. Help me help you. ๐-hough-lines geometryโ identify lines in the image. Lines identified. ๐-identifyโ identify the format and characteristics of the image. Tell me what you are. ๐-iftโ implements the inverse discrete Fourier transform (DFT). Inverse Fourier, we love to see it. ๐-implode amountโ implode image pixels about the center. Implode inward, dramatic. ๐ฅ-integralโ calculate the sum of values (pixel values) in the image. Sum it up, bestie. โ-interpolative-resize geometryโ resize image using interpolation. Resize with interpolation, smooth. ๐ฆ-kmeans geometryโ K means color reduction. K means business. ๐จ-lat geometryโ local adaptive thresholding. Local adaptive thresholding, lowkey iconic. โญ-layers methodโ optimize or compare image layers. Layers, optimized or compared. ๐ง-level valueโ adjust the level of image contrast. Level up the contrast. ๐๏ธ-level-colors color,colorโ level image with the given colors. Two colors, one level. ๐-linear-stretch geometryโ improve contrast by `stretching with saturation' the intensity range. Stretch with saturation, okay? ๐ง-liquid-rescale geometryโ rescale image with seam-carving. Seam-carving rescale, liquid style. ๐ง-magnifyโ double the size of the image with pixel art scaling. Double it, pixel art style. ๐-mean-shift geometryโ delineate arbitrarily shaped clusters in the image. Clusters, delineated. ๐ซง-median geometryโ apply a median filter to the image. Median filter, applied. ๐-mode geometryโ make each pixel the 'predominant color' of the neighborhood. Predominant color energy. ๐-modulate valueโ vary the brightness, saturation, and hue. Brightness, saturation, hue โ vary it. ๐จ-monochromeโ transform image to black and white. Black and white, no color. โซโช-motion-blur geometryโ simulate motion blur. Zoom zoom, motion blur. ๐จ-negateโ replace each pixel with its complementary color. Complementary color, periodt. ๐-noise geometryโ add or reduce noise in an image. Noise: add it or reduce it. ๐บ-normalizeโ transform image to span the full range of colors. Full range, normalized. ๐-opaque colorโ change this color to the fill color. This color becomes that color. ๐จ-ordered-dither NxNโ add a noise pattern to the image with specific amplitudes. Dither it, ordered. ๐-paint radiusโ simulate an oil painting. Oil painting but make it digital. ๐๏ธ-polaroid angleโ simulate a Polaroid picture. Polaroid pic, angle included. ๐ธ-posterize levelsโ reduce the image to a limited number of color levels. Limited colors, posterized. ๐จ-print stringโ interpret string and print to console. Print it to console, bestie. ๐จ๏ธ-profile filenameโ add, delete, or apply an image profile. Profile: add, delete, or apply. ๐-quantize colorspaceโ reduce colors in this colorspace. Quantize in this colorspace. ๐-radial-blur angleโ radial blur the image. Radial blur, spinny vibes. ๐-raise valueโ lighten/darken image edges to create a 3-D effect. 3-D effect, raised. ๐๏ธ-random-threshold low,highโ random threshold the image. Random threshold, low to high. ๐ฒ-range-threshold valuesโ perform either hard or soft thresholding within some range of values in an image. Hard or soft, within range. โ๏ธ-region geometryโ apply options to a portion of the image. Just a portion, not the whole thing. โ๏ธ-renderโ render vector graphics. Render those vectors. ๐ผ๏ธ-resample geometryโ change the resolution of an image. Resolution change, resampled. ๐-resize geometryโ resize the image. Resize it, bestie. ๐-roll geometryโ roll an image vertically or horizontally. Roll it, vertically or horizontally. ๐ณ-rotate degreesโ apply Paeth rotation to the image. Paeth rotation, degrees. ๐-sample geometryโ scale image with pixel sampling. Pixel sampling scale. ๐-scale geometryโ scale the image. Scale it up or down. ๐-segment valuesโ segment an image. Segment it, values included. ๐งฉ-selective-blur geometryโ selectively blur pixels within a contrast threshold. Selective blur, within threshold. ๐ฏ-sepia-tone thresholdโ simulate a sepia-toned photo. Sepia tone, vintage vibes. ๐-set property valueโ set an image property. Set that property, value included. โ๏ธ-shade degreesโ shade the image using a distant light source. Distant light source, shaded. ๐ก-shadow geometryโ simulate an image shadow. Shadow simulation, spooky. ๐ป-sharpen geometryโ sharpen the image. Sharpen it, crisp. ๐ช-shave geometryโ shave pixels from the image edges. Shave those edges. โ๏ธ-shear geometryโ slide one edge of the image along the X or Y axis. Slide along X or Y. ๐-sigmoidal-contrast geometryโ lightness rescaling using sigmoidal contrast enhancement. Sigmoidal contrast, lightness rescale. ๐-sketch geometryโ simulate a pencil sketch. Pencil sketch, simulated. โ๏ธ-solarize thresholdโ negate all pixels above the threshold level. Above threshold? Negated. โ๏ธ-sort-pixelsโ sort each scanline in ascending order of intensity. Sort those scanlines, ascending. ๐-sparse-color method argsโ fill in a image based on a few color points. A few color points, filled in. ๐จ-splice geometryโ splice the background color into the image. Splice that background color in. ๐งฌ-spread amountโ displace image pixels by a random amount. Random displacement, spread out. ๐ฒ-statistic type geometryโ replace each pixel with corresponding statistic from the neighborhood. Statistic from the neighborhood, swapped in. ๐-stripโ strip image of all profiles and comments. Strip it all, no profiles, no comments. ๐ซฅ-swirl degreesโ swirl image pixels about the center. Swirl it, center-focused. ๐-threshold valueโ threshold the image. Threshold it, value included. โ๏ธ-thumbnail geometryโ create a thumbnail of the image. Thumbnail time, bestie. ๐ผ๏ธ-tile filenameโ tile image when filling a graphic primitive. Tile it when filling. ๐งฑ-tint valueโ tint the image with the fill color. Tint it with fill color. ๐จ-transformโ affine transform image. Affine transform, slay. ๐-transparent colorโ make this color transparent within the image. This color? Transparent now. ๐ป-transposeโ flip image vertically and rotate 90 degrees. Flip vertically, rotate 90. ๐-transverseโ flop image horizontally and rotate 270 degrees. Flop horizontally, rotate 270. ๐-trimโ trim image edges. Trim those edges, clean. โ๏ธ-type typeโ image type. Type: image type. ๐ท๏ธ-unique-colorsโ discard all but one of any pixel color. One of each color, discard the rest. ๐จ-unsharp geometryโ sharpen the image. Unsharp but sharpens, iconic. ๐ช-vignette geometryโ soften the edges of the image in vignette style. Vignette style, soft edges. ๐ธ-wave geometryโ alter an image along a sine wave. Sine wave alteration, wavy. ๐-wavelet-denoise thresholdโ removes noise from the image using a wavelet transform. Wavelet transform, denoised. ๐-white-balanceโ automagically adjust white balance of image. Automagically adjust that white balance. โช-white-threshold valueโ force all pixels above the threshold into white. Above threshold? White. โช
๐ฆ Image Channel Operators ๐ฆ
-channel-fx expressionโ exchange, extract, or transfer one or more image channels. Channel exchange, extract, or transfer. ๐-separateโ separate an image channel into a grayscale image. Separate that channel, grayscale it. ๐ฉถ
๐ Image Sequence Operators ๐
Okay bestie, these ones work on a whole sequence of images at once, not just one. Iconic group-chat energy.
-affinity filenameโ transforms the image colors to match this set of colors from filename. Like a matching-glow-up moment. ๐-appendโ appends an image sequence top to bottom (use+appendfor left to right). Stack 'em up. โจ-clutโ applies a color lookup table to the image. Color theory but make it code.-coalesceโ merges a sequence of images. Bringing the girls together, fr.-combineโ combines a sequence of images.-compareโ mathematically and visually annotates the difference between an image and its reconstruction. It's giving diff, but make it fashion. ๐-complex operatorโ performs complex mathematics on an image sequence. Math girlies, rise. ๐งฎ-compositeโ composites an image.-copy geometry offsetโ copies pixels from one area of an image to another. You pass the geometry and the offset.-crop geometryโ cuts out a rectangular region of the image. Cropping is self-care. ๐-deconstructโ breaks down an image sequence into its constituent parts. Main character breakup energy.-evaluate-sequence operatorโ evaluates an arithmetic, relational, or logical expression. Yes, operator is the thing you hand it.-flattenโ flattens a sequence of images. Bye bye, layers. ๐ฆ-fx expressionโ applies a mathematical expression to an image channel(s).-hald-clutโ applies a Hald color lookup table to the image.-morph valueโ morphs an image sequence. value is how much morphing, okay?-mosaicโ creates a mosaic from an image sequence.-poly termsโ builds a polynomial from the image sequence and the corresponding terms (coefficients and degree pairs). Algebra class but make it art. ๐ฅ-process argumentsโ processes the image with a custom image filter.-separateโ separates an image channel into a grayscale image.-smush geometryโ smushes an image sequence together. Smush is a technical term, periodt. ๐-write filenameโ writes images to this file.
๐ Image Stack Operators ๐
These ones rearrange the stack, bestie. Very "reorganize your camera roll" vibes.
-delete indexesโ deletes the image from the image sequence. Just say bye. ๐-duplicate count,indexesโ duplicates an image one or more times. You specify count and indexes.-insert indexโ inserts the last image into the image sequence.-reverseโ reverses the image sequence. Backwards but cute.-swap indexesโ swaps two images in the image sequence.
โจ Miscellaneous Options โจ
The little extras. Lowkey essential.
-debug eventsโ displays copious debugging information. events tells it what to spill. ๐ซ-distribute-cache portโ distributed pixel cache spanning one or more servers. Fancy networked cache vibes.-helpโ prints program options. Bestie behavior, honestly. ๐ซถ-log formatโ format of debugging information.-list typeโ prints a list of supported option arguments.-versionโ prints version information.
By default, the image format of file is figured out from its magic number. If you wanna force a specific image format, put an image format name and a colon before the filename (like ps:image), or just set the image type as the filename suffix (like image.ps). And if you pass file as -, that means standard input or output. ๐
๐ SEE ALSO ๐
๐ COPYRIGHT ๐
Copyright (C) 1999 ImageMagick Studio LLC. Additional copyrights and licenses apply to this software, see file:///usr/share/doc/imagemagick-7-common/html/www/license.html (on debian system you may install the imagemagick-7 package) or https://www.imagemagick.org/script/license.php
That's a wrap, bestie! This iconic page is from ImageMagick, dated 2009/01/10 01:00:00, and it's for mogrify-im7.q16hdri(1). Stay slay, read your manpages, and hydrate. ๐โจ๐ฆ
๐ฆ where this page comes from
- ubuntu resolute: imagemagick-7.q16hdri 8:7.1.2.18+dfsg1-1 ยท ImageMagick
- ubuntu stonking: imagemagick-7.q16hdri 8:7.1.2.31+dfsg1-1 ยท ImageMagick
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms