magick(1)
hey bestie ๐ welcome to the magick(1) page from the General Commands Manual. this is the main-character tool from the ImageMagick(1) suite, and she does. so. much. no cap. โจ
๐ธ NAME ๐ธ
magick โ convert between image formats as well as resize an image, blur, crop, despeckle, dither, draw on, flip, join, re-sample, and much more.
okay so that's already a lot of verbs. she's booked and busy. ๐
๐ฆ SYNOPSIS ๐ฆ
magick [input-options] input-file [output-options] output-file
๐ OVERVIEW ๐
The magick program is a member of the ImageMagick(1) suite of tools. Use it to convert between image formats as well as resize an image, blur, crop, despeckle, dither, draw on, flip, join, re-sample, and much more.
For more information about the magick command, point your browser to file:///usr/share/doc/ImageMagick-7/www/magick.html or https://imagemagick.org/script/magick.php.
bestie, if you need the full tea, those links have it. ๐
๐ DESCRIPTION ๐
okay so under DESCRIPTION we have Image Settings, and it's giving giant menu of options. every single one matters, so we're listing them all. no skipping. periodt. ๐
โจ Image Settings โจ
-adjoinโ join images into a single multi-image file ๐-affinematrix โ affine transform matrix ๐-antialiasโ remove pixel-aliasing ๐ฆ-authenticatevalue โ decrypt image with this password ๐-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 ๐จ-colorsvalue โ preferred number of colors in the image ๐-colorspacetype โ alternate image colorspace ๐จ-commentstring โ annotate image with comment ๐ฌ-composeoperator โ set image composite operator ๐งฉ-compresstype โ type of pixel compression when writing the image ๐ฆ-decipherfilename โ magick 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 โ magick plain pixels to cipher pixels ๐-encodingtype โ text encoding type ๐ค-endiantype โ endianness (MSB or LSB) of the image ๐-familyname โ render text with this font family ๐จโ๐ฉโ๐งโ๐ฆ-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 ๐-format"string"โ output formatted image characteristics ๐-fuzzdistance โ colors within this distance are considered equal ๐ซ๏ธ-gravitytype โ horizontal and vertical text placement โ๏ธ-green-primarypoint โ chromaticity green primary point ๐-intenttype โ type of rendering intent when managing the image color ๐ฏ-interlacetype โ type of image interlacing scheme ๐งต-interpolatemethod โ pixel color interpolation method ๐จ-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 ๐-maskfilename โ associate a mask with the image ๐ญ-matteโ store matte channel if the image has one ๐๏ธ-mattecolorcolor โ frame color ๐ผ๏ธ-monitorโ monitor progress ๐-orienttype โ image orientation ๐งญ-origingeometry โ image origin ๐-pagegeometry โ size and location of an image canvas (setting) ๐-pingโ efficiently determine image attributes ๐-pointsizevalue โ font point size ๐-previewtype โ image preview type ๐-qualityvalue โ JPEG/MIFF/PNG compression level ๐-quietโ suppress all warning messages ๐คซ-red-primarypoint โ chromaticity red primary point โค๏ธ-regard-warningsโ pay attention to warning messages โ ๏ธ-repagegeometry โ size and location of an image canvas ๐-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 ๐-statistictype geometry โ replace each pixel with corresponding statistic from the neighborhood ๐-stretchtype โ render text with this font stretch โ๏ธ-strokecolor โ graphic primitive stroke color ๐๏ธ-strokewidthvalue โ graphic primitive stroke width ๐๏ธ-styletype โ render text with this font style โ๏ธ-supportfactor โ resize support: > 1.0 is blurry, < 1.0 is sharp ๐-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 ๐ฃ๏ธ-viewโ FlashPix viewing transforms ๐-virtual-pixelmethod โ virtual pixel access method ๐พ-weighttype โ render text with this font weight โ๏ธ-white-pointpoint โ chromaticity white point ๐ค
๐ธ Image Operators ๐ธ
Bestie, this is the main character list right here โ every single one of these is an operator you can slap onto your command. Let's go ๐
-adaptive-blur geometryโ blurs pixels but adaptively, meaning the blur effect gets weaker near the edges ๐ฆ-adaptive-resize geometryโ resizes the image adaptively, using data dependent triangulation โจ-adaptive-sharpen geometryโ sharpens pixels but adaptively, so the sharpening effect gets stronger near the edges ๐ฅ-annotate geometry textโ annotates the image with text, iykyk ๐-auto-orientโ automatically orients the image, no notes, it just does it ๐ซ-bilateral-blur geometryโ a non-linear, edge-preserving, and noise-reducing smoothing filter ๐-black-threshold valueโ forces all pixels below the threshold straight into black ๐ค-blur geometryโ reduces image noise and reduces detail levels (yes, both, that's the deal)-border geometryโ surrounds the image with a border of color ๐ผ๏ธ-channel maskโ sets the image channel mask-charcoal radiusโ simulates a charcoal drawing ๐คโ๏ธ-chop geometryโ removes pixels from the image interior-clipโ clips along the first path from the 8BIM profile-clip-mask filenameโ associates a clip mask with the image-clip-path idโ clips along a named path from the 8BIM profile-colorize valueโ colorizes the image with the fill color ๐-color-matrix matrixโ applies color correction to the image-contrastโ enhances or reduces the image contrast-contrast-stretch geometryโ improves contrast by `stretching' the intensity range-convolve coefficientsโ applies a convolution kernel to the image-cycle amountโ cycles the image colormap ๐ก-despeckleโ reduces the speckles within an image โจ-draw stringโ annotates the image with a graphic primitive-edge radiusโ applies a filter to detect edges in the image-emboss radiusโ embosses an image-enhanceโ applies a digital filter to enhance a noisy image-equalizeโ performs histogram equalization to an image-evaluate operator valueโ evaluates an arithmetic, relational, or logical expression ๐งฎ-extent geometryโ sets the image size-extract geometryโ extracts an area from the image-fftโ implements the discrete Fourier transform (DFT) ๐-flipโ flips the image vertically-floodfill geometry colorโ floodfills the image with color ๐จ-flopโ flops the image horizontally-frame geometryโ surrounds the image with an ornamental border ๐ผ๏ธโจ-function nameโ applies a function to the image-gamma valueโ level of gamma correction-gaussian-blur geometryโ reduces image noise and reduces detail levels-geometry geometryโ preferred size or location of the image-identifyโ identifies the format and characteristics of the image ๐-iftโ implements the inverse discrete Fourier transform (DFT)-implode amountโ implodes image pixels about the center-integralโ calculates the sum of values (pixel values) in the image-lat geometryโ local adaptive thresholding-layers methodโ optimizes or compares image layers-level valueโ adjusts the level of image contrast-linear-stretch geometryโ improves contrast by `stretching with saturation' the intensity range-median geometryโ applies a median filter to the image-mode geometryโ makes each pixel the 'predominant color' of the neighborhood-modulate valueโ varies the brightness, saturation, and hue ๐-monochromeโ transforms the image to black and white-morphology method kernelโ applies a morphology method to the image-motion-blur geometryโ simulates motion blur ๐จ-negateโ replaces each pixel with its complementary color ๐-noise geometryโ adds or reduces noise in an image-normalizeโ transforms the image to span the full range of colors-opaque colorโ changes this color to the fill color-ordered-dither NxNโ adds a noise pattern to the image with specific amplitudes-paint radiusโ simulates an oil painting ๐๏ธ-polaroid angleโ simulates a Polaroid picture ๐ธ-posterize levelsโ reduces the image to a limited number of color levels-print stringโ interprets string and prints to console ๐จ๏ธ-profile filenameโ adds, deletes, or applies an image profile-quantize colorspaceโ reduces colors in this colorspace-radial-blur angleโ radial blurs the image-raise valueโ lightens/darkens image edges to create a 3-D effect-random-threshold low,highโ random thresholds the image-range-threshold valuesโ performs either hard or soft thresholding within some range of values in an image-region geometryโ applies options to a portion of the image-renderโ renders vector graphics-resample geometryโ changes the resolution of an image-resize geometryโ resizes the image-roll geometryโ rolls an image vertically or horizontally-rotate degreesโ applies Paeth rotation to the image-sample geometryโ scales the image with pixel sampling-scale geometryโ scales the image-segment valuesโ segments an image-selective-blur geometryโ selectively blurs pixels within a contrast threshold-sepia-tone thresholdโ simulates a sepia-toned photo ๐-set property valueโ sets an image property-shade degreesโ shades the image using a distant light source ๐ก-shadow geometryโ simulates an image shadow-sharpen geometryโ sharpens the image-shave geometryโ shaves pixels from the image edges โ๏ธ-shear geometryโ slides one edge of the image along the X or Y axis-sigmoidal-contrast geometryโ lightness rescaling using sigmoidal contrast enhancement-sketch geometryโ simulates a pencil sketch โ๏ธ-solarize thresholdโ negates all pixels above the threshold level-sort-pixelsโ sorts each scanline in ascending order of intensity-splice geometryโ splices the background color into the image-spread amountโ displaces image pixels by a random amount-stripโ strips the image of all profiles and comments ๐ซง-swirl degreesโ swirls image pixels about the center ๐-threshold valueโ thresholds the image-thumbnail geometryโ creates a thumbnail of the image-tile filenameโ tiles the image when filling a graphic primitive-tint valueโ tints the image with the fill color-transformโ affine transforms the image-transparent colorโ makes this color transparent within the image ๐ป-transposeโ flips the image vertically and rotates 90 degrees-transverseโ flops the image horizontally and rotates 270 degrees-trimโ trims image edges โ๏ธ-type typeโ image type-unique-colorsโ discards all but one of any pixel color-unsharp geometryโ sharpens the image-vignette geometryโ softens the edges of the image in vignette style-wave geometryโ alters an image along a sine wave ใฐ๏ธ-white-threshold valueโ forces all pixels above the threshold into white ๐ค
๐ Image Channel Operators ๐
-channel-extract channel-listโ extracts the channels, in order-channel-inject channel-listโ injects the channels, in order-channel-swap channel,channelโ swaps the channels ๐
๐ฆ Image Sequence Operators ๐ฆ
-affinity filenameโ transforms image colors to match this set of colors-appendโ appends an image sequence top to bottom (use+appendfor left to right)-clutโ applies a color lookup table to the image-coalesceโ merges a sequence of images-combineโ combines a sequence of images-compositeโ composites the image-crop geometryโ cuts out a rectangular region of the image โ๏ธ-deconstructโ breaks down an image sequence into constituent parts-evaluate-sequence operatorโ evaluates an arithmetic, relational, or logical expression-flattenโ flattens a sequence of images-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-mosaicโ creates a mosaic from an image sequence-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-write filenameโ writes images to this file
๐ Image Stack Operators ๐
-clone indexesโ clones an image-delete indexesโ deletes the image from the image sequence-duplicate count,indexesโ duplicates an image one or more times-insert indexโ inserts the last image into the image sequence-swap indexesโ swaps two images in the image sequence
๐ Miscellaneous Options ๐
-debug eventsโ displays copious debugging information-helpโ prints program options-log formatโ format of debugging information-list typeโ prints a list of supported option arguments-versionโ prints version information
Okay so here's the tea about settings, bestie: use any setting or operator as an output-option. Only a limited number of settings are input-options though. The ones that qualify are: -antialias, -caption, -density, -define, -encoding, -font, -pointsize, -size, and -texture โ plus any of the miscellaneous options. Slay ๐
And now, the format detective moment: by default, the image format of file is determined by its magic number ๐ฎ. Wanna force a specific image format? Precede the filename with an image format name and a colon (i.e. ps:image), or just specify the image type as the filename suffix (i.e. image.ps). And if you want standard input or output, specify 'file' as -. Periodt. ๐
๐ SEE ALSO ๐
๐ COPYRIGHT ๐
Copyright (C) 1999 ImageMagick Studio LLC. Additional copyrights and licenses apply to this software, see file:///usr/share/doc/ImageMagick-7/www/license.html or https://imagemagick.org/license/
and that's the whole page, bestie ๐ซถ this was the ImageMagick manual page, dated Date: 2009/01/10 01:00:00 โ go forth and edit those images, you absolute icon ๐โจ
๐ฆ where this page comes from
- alpine 3.24: imagemagick-doc 7.1.2.35-r0 ยท ImageMagick
- arch rolling: imagemagick 7.1.2.35-1 ยท ImageMagick
- epel 10: ImageMagick 1:7.1.2.34-1.el10_3 ยท ImageMagick
- fedora 43: ImageMagick 1:7.1.2.32-1.fc43
- fedora 43: ImageMagick 1:7.1.2.32-1.fc43
- fedora 43: ImageMagick 1:7.1.2.34-1.fc43 ยท ImageMagick
- fedora 43: ImageMagick 1:7.1.2.34-1.fc43 ยท ImageMagick
- fedora 44: ImageMagick 1:7.1.2.13-2.fc44 ยท ImageMagick
- fedora 44: ImageMagick 1:7.1.2.13-2.fc44 ยท ImageMagick
- fedora 44: ImageMagick 1:7.1.2.32-1.fc44
- fedora 44: ImageMagick 1:7.1.2.32-1.fc44
- fedora 44: ImageMagick 1:7.1.2.34-1.fc44 ยท ImageMagick
- fedora 44: ImageMagick 1:7.1.2.34-1.fc44 ยท ImageMagick
- fedora 44: ImageMagick 1:7.1.2.35-1.fc44 ยท ImageMagick
- fedora 44: ImageMagick 1:7.1.2.35-1.fc44 ยท ImageMagick
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms