magick(1)

πŸ“¦
version 7.1.2.35 Β· 4 versions
, in alpine 3.24, arch rolling, epel 10, fedora 43, fedora 44

🌸 NAME 🌸

okay so bestie, this is the magick(1) manual page, and the main character is magick-script β€” a scripting language that converts between image formats as well as resize an image, blur, crop, despeckle, dither, draw on, flip, join, re-sample, and much more. πŸ’…βœ¨

πŸŽ€ SYNOPSIS πŸŽ€

magick-script [input-options] input-file [output-options] output-file

🌈 OVERVIEW 🌈

The magick-script 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. Here is an example script, bestie:

#!/bin/env magick-script
-size 100x100 xc:red ( rose: -rotate -90 ) +append  -write show:

For more information about the magick-script command, point your browser to file:///usr/share/doc/ImageMagick-7/www/magick-script.html or https://imagemagick.org/script/magick-script.php. πŸ¦‹

πŸ’– DESCRIPTION πŸ’–

okay so here's the whole Image Settings menu, and I mean every single flag. no cap, no skipping. 🫢

🧸 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 πŸ”₯

okay bestie, this is the big one β€” the glow-up station. every single one of these bad boys tweaks your picture somehow. let's get into it πŸ’…

  • -adaptive-blur geometry β€” blurs your pixels adaptively, meaning the blur gets weaker the closer you get to the edges. it's giving "soft focus but keep the outline, queen"
  • -adaptive-resize geometry β€” resizes your image with data-dependent triangulation. fancy resize, no cap
  • -adaptive-sharpen geometry β€” the sharpening cousin: cranks the sharpening up near the edges. literally the opposite energy of adaptive-blur πŸ¦‹
  • -annotate geometry text β€” slaps some text on your image
  • -auto-orient β€” auto-fixes the orientation. your image knows which way is up now ⭐
  • -black-threshold value β€” every pixel below the threshold gets forced to black. brutal. iconic.
  • -blur geometry β€” smooths out noise and drops the detail level. the "soft launch" of filters ✨
  • -border geometry β€” wraps your image in a border of color
  • -channel mask β€” sets the image channel mask
  • -charcoal radius β€” makes it look like a charcoal drawing. art hoe era 🎨
  • -chop geometry β€” removes pixels from the interior of the image (yes, the middle, not the edges, bestie)
  • -clip β€” clips along the first path it finds in the 8BIM profile
  • -clip-mask filename β€” attaches a clip mask to your image
  • -clip-path id β€” clips along a named path from the 8BIM profile
  • -colorize value β€” colorizes the image using the fill color
  • -color-matrix matrix β€” applies color correction to the image
  • -contrast β€” turns the image contrast up or down
  • -contrast-stretch geometry β€” improves contrast by "stretching" the intensity range
  • -convolve coefficients β€” applies a convolution kernel to the image. math girlies rise 🧚
  • -cycle amount β€” cycles the image colormap
  • -despeckle β€” reduces the speckles hanging out inside an image
  • -draw string β€” annotates the image with a graphic primitive
  • -edge radius β€” runs a filter that detects the edges in your image
  • -emboss radius β€” embosses the image. texture era πŸ’…
  • -enhance β€” a digital filter that enhances a noisy image
  • -equalize β€” performs histogram equalization on the image
  • -evaluate operator value β€” evaluates an arithmetic, relational, or logical expression
  • -extent geometry β€” sets the image size
  • -extract geometry β€” extracts an area out of 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. fancy frame, main character energy πŸ‘‘
  • -function name β€” applies a function to the image
  • -gamma value β€” sets the level of gamma correction
  • -gaussian-blur geometry β€” reduces image noise and drops the detail levels
  • -geometry geometry β€” the 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 the image pixels around the center. dramatic πŸ’€
  • -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 every pixel the 'predominant color' of its 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 β€” swaps every pixel for its complementary color
  • -noise geometry β€” adds noise to or reduces noise in an image
  • -normalize β€” transforms the image so it spans 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 down to a limited number of color levels
  • -print string β€” interprets the string and prints it to the console
  • -profile filename β€” adds, deletes, or applies an image profile
  • -quantize colorspace β€” reduces colors in this colorspace
  • -radial-blur angle β€” radially blurs the image
  • -raise value β€” lightens/darkens the image edges to create a 3-D effect
  • -random-threshold low,high β€” randomly 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 just 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 the 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. vintage aesthetic unlocked 🌸
  • -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 off 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 every pixel above the threshold level
  • -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. decluttering, we love to see it 🧹
  • -swirl degrees β€” swirls the image pixels around 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 transform on the image
  • -transparent color β€” makes this color transparent inside the image
  • -transpose β€” flips the image vertically and rotates it 90 degrees
  • -transverse β€” flops the image horizontally and rotates it 270 degrees
  • -trim β€” trims the image edges
  • -type type β€” sets the image type
  • -unique-colors β€” throws out all but one of every pixel color
  • -unsharp geometry β€” sharpens the image
  • -vignette geometry β€” softens the image edges, vignette style
  • -wave geometry β€” alters the image along a sine wave 〰️
  • -white-threshold value β€” forces every pixel above the threshold to white

✨ IMAGE CHANNEL OPERATORS ✨

channel girlies, this section is for you πŸ’œ

  • -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 πŸ¦‹

when you're working with more than one image, this is your moment bestie

  • -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 an image
  • -crop geometry β€” cuts out a rectangular region of the image βœ‚οΈ
  • -deconstruct β€” breaks an image sequence down into its 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 (or channels)
  • -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 the images to this file

🌈 IMAGE STACK OPERATORS 🌈

stack management, aka keeping your little image pile in order πŸŽ€

  • -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 πŸ’–

the lil helpers, the emotional support flags 🫢

  • -debug events β€” displays copious debugging information
  • -help β€” prints the program options
  • -log format β€” sets the format of the debugging information
  • -list type β€” prints a list of supported option arguments
  • -version β€” prints version information

⭐ THE IMPORTANT FINE PRINT ⭐

Use any setting or operator as an output-option. Only a limited number of settings are input-options. They include: -antialias, -caption, -density, -define, -encoding, -font, -pointsize, -size, and -texture, as well as any of the miscellaneous options.

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.

lowkey memorize that magic-number bit, bestie, it comes up constantly and it makes you look so smart 😭

πŸ‘€ SEE ALSO πŸ‘€

ImageMagick(1)


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 β€” you made it to the end πŸŽ‰ this one's from the ImageMagick crew, dated 2009/01/10 01:00:00, and it's the magick(1) page. go forth and edit some pixels, you absolute icon πŸ’…βœ¨