magick(1)

๐Ÿ“ฆ
version 7.1.2.35 ยท 4 versions
, in alpine 3.24, arch rolling, epel 10, fedora 43, fedora 44

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 ๐Ÿ’–
  • -affine matrix โ€” affine transform matrix ๐Ÿ’…
  • -antialias โ€” remove pixel-aliasing ๐Ÿฆ‹
  • -authenticate value โ€” decrypt image with this password ๐Ÿ”
  • -background color โ€” background color ๐ŸŒธ
  • -bias value โ€” add bias when convolving an image โœจ
  • -black-point-compensation โ€” use black point compensation ๐Ÿ–ค
  • -blue-primary point โ€” chromaticity blue primary point ๐Ÿ’™
  • -bordercolor color โ€” border color ๐ŸŽ€
  • -caption string โ€” assign a caption to an image ๐Ÿ’ฌ
  • -cdl filename โ€” color correct with a color decision list ๐ŸŽจ
  • -colors value โ€” preferred number of colors in the image ๐ŸŒˆ
  • -colorspace type โ€” alternate image colorspace ๐ŸŽจ
  • -comment string โ€” annotate image with comment ๐Ÿ’ฌ
  • -compose operator โ€” set image composite operator ๐Ÿงฉ
  • -compress type โ€” type of pixel compression when writing the image ๐Ÿ“ฆ
  • -decipher filename โ€” magick cipher pixels to plain pixels ๐Ÿ”“
  • -define format:option โ€” define one or more image format options ๐Ÿ“
  • -delay centiseconds โ€” display the next image after pausing โณ
  • -density geometry โ€” horizontal and vertical density of the image ๐Ÿ“
  • -depth value โ€” image depth ๐Ÿ•ณ๏ธ
  • -direction type โ€” render text right-to-left or left-to-right โ†”๏ธ
  • -display server โ€” get image or font from this X server ๐Ÿ–ฅ๏ธ
  • -dispose method โ€” layer disposal method ๐Ÿ—‘๏ธ
  • -dither method โ€” apply error diffusion to image ๐ŸŒซ๏ธ
  • -encipher filename โ€” magick plain pixels to cipher pixels ๐Ÿ”’
  • -encoding type โ€” text encoding type ๐Ÿ”ค
  • -endian type โ€” endianness (MSB or LSB) of the image ๐Ÿ”„
  • -family name โ€” render text with this font family ๐Ÿ‘จโ€๐Ÿ‘ฉโ€๐Ÿ‘งโ€๐Ÿ‘ฆ
  • -fill color โ€” color to use when filling a graphic primitive ๐ŸŽจ
  • -filter type โ€” use this filter when resizing an image ๐Ÿ”
  • -flatten โ€” flatten a sequence of images ๐Ÿฅž
  • -font name โ€” render text with this font ๐Ÿ” 
  • -format "string" โ€” output formatted image characteristics ๐Ÿ“Š
  • -fuzz distance โ€” colors within this distance are considered equal ๐ŸŒซ๏ธ
  • -gravity type โ€” horizontal and vertical text placement โš–๏ธ
  • -green-primary point โ€” chromaticity green primary point ๐Ÿ’š
  • -intent type โ€” type of rendering intent when managing the image color ๐ŸŽฏ
  • -interlace type โ€” type of image interlacing scheme ๐Ÿงต
  • -interpolate method โ€” pixel color interpolation method ๐ŸŽจ
  • -kerning value โ€” set the space between two letters ๐Ÿ”ค
  • -label string โ€” assign a label to an image ๐Ÿท๏ธ
  • -limit type value โ€” pixel cache resource limit ๐Ÿšฆ
  • -loop iterations โ€” add Netscape loop extension to your GIF animation ๐Ÿ”
  • -mask filename โ€” associate a mask with the image ๐ŸŽญ
  • -matte โ€” store matte channel if the image has one ๐ŸŽž๏ธ
  • -mattecolor color โ€” frame color ๐Ÿ–ผ๏ธ
  • -monitor โ€” monitor progress ๐Ÿ“ˆ
  • -orient type โ€” image orientation ๐Ÿงญ
  • -origin geometry โ€” image origin ๐Ÿ“
  • -page geometry โ€” size and location of an image canvas (setting) ๐Ÿ“„
  • -ping โ€” efficiently determine image attributes ๐Ÿ“
  • -pointsize value โ€” font point size ๐Ÿ” 
  • -preview type โ€” image preview type ๐Ÿ‘€
  • -quality value โ€” JPEG/MIFF/PNG compression level ๐Ÿ“‰
  • -quiet โ€” suppress all warning messages ๐Ÿคซ
  • -red-primary point โ€” chromaticity red primary point โค๏ธ
  • -regard-warnings โ€” pay attention to warning messages โš ๏ธ
  • -repage geometry โ€” size and location of an image canvas ๐Ÿ“„
  • -sampling-factor geometry โ€” horizontal and vertical sampling factor ๐Ÿ“Š
  • -scene value โ€” image scene number ๐ŸŽฌ
  • -seed value โ€” seed a new sequence of pseudo-random numbers ๐ŸŽฒ
  • -size geometry โ€” width and height of image ๐Ÿ“
  • -statistic type geometry โ€” replace each pixel with corresponding statistic from the neighborhood ๐Ÿ“ˆ
  • -stretch type โ€” render text with this font stretch โ†”๏ธ
  • -stroke color โ€” graphic primitive stroke color ๐Ÿ–Œ๏ธ
  • -strokewidth value โ€” graphic primitive stroke width ๐Ÿ–Œ๏ธ
  • -style type โ€” render text with this font style โœ๏ธ
  • -support factor โ€” resize support: > 1.0 is blurry, < 1.0 is sharp ๐Ÿ”
  • -synchronize โ€” synchronize image to storage device ๐Ÿ’พ
  • -taint โ€” declare the image as modified ๐Ÿท๏ธ
  • -texture filename โ€” name of texture to tile onto the image background ๐Ÿงฑ
  • -tile-offset geometry โ€” tile offset ๐Ÿงฉ
  • -treedepth value โ€” color tree depth ๐ŸŒณ
  • -transparent-color color โ€” transparent color ๐Ÿ‘ป
  • -undercolor color โ€” annotation bounding box color ๐ŸŸช
  • -units type โ€” the units of image resolution ๐Ÿ“
  • -verbose โ€” print detailed information about the image ๐Ÿ—ฃ๏ธ
  • -view โ€” FlashPix viewing transforms ๐Ÿ‘“
  • -virtual-pixel method โ€” virtual pixel access method ๐Ÿ‘พ
  • -weight type โ€” render text with this font weight โš–๏ธ
  • -white-point point โ€” 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 +append for 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 (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 ๐Ÿ‘‘โœจ