magick(1)
πΈ 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+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 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 π
π 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 β 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 π
β¨
π¦ 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