convert-im7.q16hdri(1)

๐Ÿ“ฆ
version 7.1.2.31 ยท 2 versions
, in ubuntu resolute, ubuntu stonking

๐Ÿ’– convert-im7.q16hdri โ€” the manual, but make it make sense

okay bestie, you're looking at convert-im7.q16hdri, and yeah, the manual name is a whole mouthful (it's giving "why is there a q16hdri in here" ๐Ÿ’€) but don't let that scare you. this is the page for the convert command, straight out of the ImageMagick-ims7.q16hdri(1) suite. let's get into it ๐Ÿซถ


โœจ NAME

convert โ€” convert between image formats as well as resize an image, blur, crop, despeckle, dither, draw on, flip, join, re-sample, and much more.

like. it does EVERYTHING. it's the main character of image tooling, no cap. ๐Ÿ‘‘


๐ŸŒธ SYNOPSIS

magick-im7.q16hdri convert [input-options] input-file [output-options] output-file

that's the shape of it: you got your input-options, then your input-file, then your output-options, then your output-file. order matters, bestie, it's not a vibe suggestion. ๐ŸŽ€


๐Ÿฆ‹ OVERVIEW

so convert-im7.q16hdri is a member of the ImageMagick-ims7.q16hdri(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. (yes, the NAME section said that too. they're committed. we respect the commitment. ๐Ÿ’…)

want more lore about the convert command? point your browser at:

file:///usr/share/doc/imagemagick-7-common/html/www/convert.html

(and on a debian system you may install the imagemagick-7 package to get that good stuff) โ€” or hit up https://www.imagemagick.org/script/convert.php if the internet is your thing. ๐ŸŒˆ


๐Ÿ’œ DESCRIPTION

okay so here's the big one. this whole section is the settings โ€” the stuff you set up before/around the actual work. there are a LOT of them. grab a snack. ๐Ÿ“

โœจ Image Settings โœจ

  • -adjoin โ€” join images into a single multi-image file. one file, many pics, they're a unit now ๐Ÿซถ
  • -affine matrix โ€” affine transform matrix.
  • -alpha option โ€” activate, deactivate, reset, or set the alpha channel.
  • -antialias โ€” remove pixel-aliasing. smooth those jagged little edges out, slay โœจ
  • -authenticate value โ€” decrypt image with this password. ๐Ÿ”
  • -attenuate value โ€” lessen (or intensify) when adding noise to an image.
  • -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.
  • -clip โ€” clip along the first path from the 8BIM profile.
  • -clip-mask filename โ€” associate a clip mask with the image.
  • -clip-path id โ€” clip along a named path from the 8BIM profile.
  • -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 โ€” convert 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 โ€” convert 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.
  • -features distance โ€” analyze image features (e.g. contrast, correlation).
  • -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. ๐Ÿ’š
  • -intensity method โ€” method to generate intensity value from pixel.
  • -intent type โ€” type of rendering intent when managing the image color.
  • -interlace type โ€” type of image interlacing scheme.
  • -interline-spacing value โ€” set the space between two text lines.
  • -interpolate method โ€” pixel color interpolation method.
  • -interword-spacing value โ€” set the space between two words.
  • -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. ๐Ÿ”
  • -matte โ€” store matte channel if the image has one.
  • -mattecolor color โ€” frame color.
  • -metric type โ€” measure differences between images with this metric.
  • -moments โ€” report image moments.
  • -monitor โ€” monitor progress.
  • -orient type โ€” image orientation.
  • -page geometry โ€” size and location of an image canvas (setting).
  • -ping โ€” efficiently determine image attributes.
  • -pointsize value โ€” font point size.
  • -precision value โ€” maximum number of significant digits to print.
  • -preview type โ€” image preview type.
  • -quality value โ€” JPEG/MIFF/PNG compression level.
  • -quiet โ€” suppress all warning messages. ๐Ÿค
  • -read-mask filename โ€” associate a read mask with the image.
  • -red-primary point โ€” chromaticity red primary point. โค๏ธ
  • -regard-warnings โ€” pay attention to warning messages. (the opposite of -quiet, basically. eyes OPEN. ๐Ÿ‘€)
  • -remap filename โ€” transform image colors to match this set of colors.
  • -repage geometry โ€” size and location of an image canvas.
  • -respect-parentheses โ€” settings remain in effect until parenthesis boundary.
  • -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. ๐Ÿ—ฃ๏ธ
  • -virtual-pixel method โ€” virtual pixel access method.
  • -weight type โ€” render text with this font weight.
  • -white-point point โ€” chromaticity white point. ๐Ÿค
  • -write-mask filename โ€” associate a write mask with the image.

and that's the settings lineup, bestie โ€” every single one of them, exactly as written, no edits, no skips. there's more of this page coming, so hold that thought ๐Ÿ’–

โœจ Image Operators โœจ

  • -adaptive-blur geometry โ€” adaptively blur pixels; the effect gets weaker near the edges ๐Ÿฆ‹
  • -adaptive-resize geometry โ€” adaptively resize the image with data-dependent triangulation โœจ
  • -adaptive-sharpen geometry โ€” adaptively sharpen pixels; the effect gets stronger near the edges ๐Ÿ’…
  • -annotate geometry text โ€” annotate the image with text ๐ŸŽ€
  • -auto-gamma โ€” automagically adjust the gamma level of the image ๐ŸŒˆ
  • -auto-level โ€” automagically adjust the color levels of the image โœจ
  • -auto-orient โ€” automatically orient the image ๐Ÿงš
  • -auto-threshold method โ€” automatically perform image thresholding using the given method โญ
  • -bench iterations โ€” measure performance over the given number of iterations ๐Ÿ”ฅ
  • -bilateral-blur geometry โ€” a non-linear, edge-preserving, and noise-reducing smoothing filter ๐Ÿซถ
  • -black-threshold value โ€” force all pixels below the threshold into black ๐Ÿ’€
  • -blue-shift factor โ€” simulate a scene at nighttime in the moonlight โœจ
  • -blur geometry โ€” reduce image noise and reduce detail levels ๐Ÿ’…
  • -border geometry โ€” surround the image with a border of color ๐ŸŽ€
  • -brightness-contrast geometry โ€” improve brightness / contrast of the image โœจ
  • -canny geometry โ€” detect edges in the image ๐Ÿ”ฅ
  • -channel mask โ€” set the image channel mask ๐Ÿซถ
  • -charcoal radius โ€” simulate a charcoal drawing with the given radius ๐ŸŽ€
  • -chop geometry โ€” remove pixels from the image interior ๐Ÿ’€
  • -clahe geometry โ€” contrast limited adaptive histogram equalization โœจ
  • -clamp โ€” keep pixel values in range (0-QuantumRange) ๐Ÿ’…
  • -clip โ€” clip along the first path from the 8BIM profile ๐ŸŽ€
  • -clip-mask filename โ€” associate a clip mask with the image using the given filename ๐Ÿฆ‹
  • -clip-path id โ€” clip along a named path from the 8BIM profile, using the given id โœจ
  • -colorize value โ€” colorize the image with the fill color ๐ŸŒˆ
  • -color-matrix matrix โ€” apply color correction to the image using the given matrix ๐Ÿ’œ
  • -colors value โ€” set the preferred number of colors in the image ๐ŸŽ€
  • -color-threshold start_color-stop_color โ€” force all pixels in the color range to white, otherwise black ๐Ÿ’€
  • -connected-component connectivity โ€” connected-components uniquely labeled with the given connectivity ๐Ÿซถ
  • -contrast โ€” enhance or reduce the image contrast โœจ
  • -contrast-stretch geometry โ€” improve contrast by stretching the intensity range ๐Ÿ’…
  • -convolve coefficients โ€” apply a convolution kernel to the image ๐ŸŽ€
  • -cycle amount โ€” cycle the image colormap by the given amount ๐Ÿฆ‹
  • -deskew threshold โ€” straighten an image using the given threshold โœจ
  • -despeckle โ€” reduce the speckles within an image ๐Ÿซถ
  • -distort method args โ€” distort images according to the given method and args ๐ŸŒˆ
  • -draw string โ€” annotate the image with a graphic primitive given as a string ๐Ÿ’…
  • -edge radius โ€” apply a filter to detect edges in the image ๐Ÿฆ‹
  • -emboss radius โ€” emboss an image with the given radius โœจ
  • -enhance โ€” apply a digital filter to enhance a noisy image ๐Ÿ”ฅ
  • -equalize โ€” perform histogram equalization to an image ๐ŸŽ€
  • -evaluate operator value โ€” evaluate an arithmetic, relational, or logical expression using the given operator and value ๐Ÿ’œ
  • -extent geometry โ€” set the image size ๐Ÿซถ
  • -extract geometry โ€” extract area from image โœจ
  • -fft โ€” implements the discrete Fourier transform (DFT) ๐ŸŒˆ
  • -flip โ€” flip image vertically ๐Ÿ’…
  • -floodfill geometry color โ€” floodfill the image with color ๐ŸŽ€
  • -flop โ€” flop image horizontally ๐Ÿฆ‹
  • -frame geometry โ€” surround image with an ornamental border โœจ
  • -function name โ€” apply a function to the image, using the given name ๐Ÿ’œ
  • -gamma value โ€” set the level of gamma correction ๐Ÿซถ
  • -gaussian-blur geometry โ€” reduce image noise and reduce detail levels ๐Ÿ’…
  • -geometry geometry โ€” set the preferred size or location of the image ๐ŸŽ€
  • -grayscale method โ€” convert image to grayscale using the given method โœจ
  • -hough-lines geometry โ€” identify lines in the image ๐ŸŒˆ
  • -identify โ€” identify the format and characteristics of the image ๐Ÿ‘‘
  • -ift โ€” implements the inverse discrete Fourier transform (DFT) ๐Ÿ’œ
  • -implode amount โ€” implode image pixels about the center ๐Ÿซถ
  • -integral โ€” calculate the sum of values (pixel values) in the image โœจ
  • -interpolative-resize geometry โ€” resize image using interpolation ๐Ÿ’…
  • -kmeans geometry โ€” K means color reduction ๐ŸŽ€
  • -lat geometry โ€” local adaptive thresholding ๐Ÿฆ‹
  • -layers method โ€” optimize or compare image layers using the given method ๐ŸŒˆ
  • -level value โ€” adjust the level of image contrast ๐Ÿ’œ
  • -level-colors color,color โ€” level image with the given colors ๐Ÿซถ
  • -linear-stretch geometry โ€” improve contrast by stretching with saturation the intensity range ๐Ÿ’…
  • -liquid-rescale geometry โ€” rescale image with seam-carving โœจ
  • -mean-shift geometry โ€” delineate arbitrarily shaped clusters in the image ๐ŸŽ€
  • -median geometry โ€” apply a median filter to the image ๐Ÿฆ‹
  • -mode geometry โ€” make each pixel the 'predominant color' of the neighborhood ๐ŸŒˆ
  • -modulate value โ€” vary the brightness, saturation, and hue ๐Ÿ’œ
  • -monochrome โ€” transform image to black and white ๐Ÿ’€
  • -morphology method kernel โ€” apply a morphology method to the image with the given method and kernel ๐Ÿซถ
  • -motion-blur geometry โ€” simulate motion blur โœจ
  • -negate โ€” replace each pixel with its complementary color ๐ŸŽ€
  • -noise geometry โ€” add or reduce noise in an image ๐Ÿฆ‹
  • -normalize โ€” transform image to span the full range of colors ๐ŸŒˆ
  • -opaque color โ€” change this color to the fill color ๐Ÿ’œ
  • -ordered-dither NxN โ€” add a noise pattern to the image with specific amplitudes ๐Ÿซถ
  • -paint radius โ€” simulate an oil painting ๐Ÿ’…
  • -perceptible epsilon โ€” pixel value less than |epsilon| become epsilon or -epsilon โœจ
  • -polaroid angle โ€” simulate a Polaroid picture ๐ŸŽ€
  • -posterize levels โ€” reduce the image to a limited number of color levels ๐Ÿฆ‹
  • -print string โ€” interpret string and print to console ๐ŸŒˆ
  • -profile filename โ€” add, delete, or apply an image profile ๐Ÿ’œ
  • -quantize colorspace โ€” reduce colors in this colorspace ๐Ÿซถ
  • -radial-blur angle โ€” radial blur the image ๐Ÿ’…
  • -raise value โ€” lighten/darken image edges to create a 3-D effect โœจ
  • -random-threshold low,high โ€” random threshold the image ๐ŸŽ€
  • -range-threshold values โ€” perform either hard or soft thresholding within some range of values in an image ๐Ÿฆ‹
  • -region geometry โ€” apply options to a portion of the image ๐ŸŒˆ
  • -render โ€” render vector graphics ๐Ÿ’œ
  • -resample geometry โ€” change the resolution of an image ๐Ÿซถ
  • -resize geometry โ€” resize the image ๐Ÿ’…
  • -roll geometry โ€” roll an image vertically or horizontally โœจ
  • -rotate degrees โ€” apply Paeth rotation to the image ๐ŸŽ€
  • -sample geometry โ€” scale image with pixel sampling ๐Ÿฆ‹
  • -scale geometry โ€” scale the image ๐ŸŒˆ
  • -segment values โ€” segment an image ๐Ÿ’œ
  • -selective-blur geometry โ€” selectively blur pixels within a contrast threshold ๐Ÿซถ
  • -sepia-tone threshold โ€” simulate a sepia-toned photo ๐Ÿ’…
  • -set property value โ€” set an image property โœจ
  • -shade degrees โ€” shade the image using a distant light source ๐ŸŽ€
  • -shadow geometry โ€” simulate an image shadow ๐Ÿฆ‹
  • -sharpen geometry โ€” sharpen the image ๐ŸŒˆ
  • -shave geometry โ€” shave pixels from the image edges ๐Ÿ’œ
  • -shear geometry โ€” slide one edge of the image along the X or Y axis ๐Ÿซถ
  • -sigmoidal-contrast geometry โ€” lightness rescaling using sigmoidal contrast enhancement ๐Ÿ’…
  • -sketch geometry โ€” simulate a pencil sketch โœจ
  • -solarize threshold โ€” negate all pixels above the threshold level ๐ŸŽ€
  • -sort-pixels โ€” sort each scanline in ascending order of intensity ๐Ÿฆ‹
  • -sparse-color method args โ€” fill in a image based on a few color points ๐ŸŒˆ
  • -splice geometry โ€” splice the background color into the image ๐Ÿ’œ
  • -spread amount โ€” displace image pixels by a random amount ๐Ÿซถ
  • -strip โ€” strip image of all profiles and comments ๐Ÿ’…
  • -swirl degrees โ€” swirl image pixels about the center โœจ
  • -threshold value โ€” threshold the image ๐ŸŽ€
  • -thumbnail geometry โ€” create a thumbnail of the image ๐Ÿฆ‹
  • -tile filename โ€” tile image when filling a graphic primitive ๐ŸŒˆ
  • -tint value โ€” tint the image with the fill color ๐Ÿ’œ
  • -transform โ€” affine transform image ๐Ÿซถ
  • -transparent color โ€” make this color transparent within the image ๐Ÿ’…
  • -transpose โ€” flip image vertically and rotate 90 degrees โœจ
  • -transverse โ€” flop image horizontally and rotate 270 degrees ๐ŸŽ€
  • -trim โ€” trim image edges ๐Ÿฆ‹
  • -type type โ€” image type ๐ŸŒˆ
  • -unique-colors โ€” discard all but one of any pixel color ๐Ÿ’œ
  • -unsharp geometry โ€” sharpen the image ๐Ÿซถ
  • -vignette geometry โ€” soften the edges of the image in vignette style ๐Ÿ’…
  • -wave geometry โ€” alter an image along a sine wave โœจ
  • -wavelet-denoise threshold โ€” removes noise from the image using a wavelet transform ๐ŸŽ€
  • -white-balance โ€” automagically adjust white balance of image ๐Ÿฆ‹
  • -white-threshold value โ€” force all pixels above the threshold into white ๐ŸŒˆ

โœจ Image Channel Operators โœจ

  • -channel-fx expression โ€” exchange, extract, or transfer one or more image channels ๐Ÿ’œ
  • -separate โ€” separate an image channel into a grayscale image ๐Ÿซถ

๐ŸŽ€ Image Sequence Operators ๐ŸŽ€

okay bestie, these ones are all about sequences, like when you've got a whole lil squad of images and you wanna do stuff to them together. iconic behavior fr.

  • -append โ€” glues an image sequence together top to bottom. and if you want left to right instead? use +append, periodt ๐Ÿ’…
  • -clut โ€” applies a color lookup table to the image, slay
  • -coalesce โ€” merges a sequence of images together
  • -combine โ€” combines a sequence of images
  • -compare โ€” mathematically and visually annotates the difference between an image and its reconstruction. it's giving detective energy ๐Ÿ”
  • -complex operator โ€” does complex mathematics on an image sequence
  • -composite โ€” composites an image
  • -copy geometry offset, โ€” copies pixels from one area of an image to another
  • -crop geometry โ€” cuts out a rectangular region of the image โœ‚๏ธ
  • -deconstruct โ€” breaks down an image sequence 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(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
  • -poly terms โ€” builds a polynomial from the image sequence and the corresponding terms (coefficients and degree pairs)
  • -process arguments โ€” processes the image with a custom image filter
  • -smush geometry โ€” smushes an image sequence together (yes that's the real name, no I'm not kidding)
  • -write filename โ€” writes images to this file

๐ŸŒธ Image Stack Operators ๐ŸŒธ

these are the ones that mess with your stack โ€” cloning, deleting, reordering. main character energy for your image list ๐Ÿ’–

  • -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
  • -reverse โ€” reverses the image sequence ๐Ÿ”„
  • -swap indexes โ€” swaps two images in the image sequence

โœจ Miscellaneous Options โœจ

the lil grab-bag of extras, we love her

  • -debug events โ€” displays copious debugging information ๐Ÿ›
  • -distribute-cache port โ€” distributed pixel cache spanning one or more servers
  • -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 a thing you need to know bestie: you can use any setting or operator as an output-option. but only a limited number of settings are input-option. those special ones are: -antialias, -caption, -density, -define, -encoding, -font, -pointsize, -size, and -texture โ€” plus any of the miscellaneous options. so yeah, not all of them get to be input-options, only those cuties ๐Ÿ’œ

and by default, the image format of file is determined by its magic number ๐Ÿ”ฎ. wanna force a specific format? then either put an image format name and a colon in front of the filename (like ps:image) or just use the image type as the filename suffix (like image.ps). and if you want standard input or output, specify file as -. easy as that ๐ŸŒˆ


๐ŸŒŸ SEE ALSO ๐ŸŒŸ


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


and that's a wrap, bestie!! ๐Ÿซถ this whole page is from ImageMagick, version/date stamped Date: 2009/01/10 01:00:00, and it's the manual for convert-im7.q16hdri(1). go forth and convert, you absolute icon ๐Ÿ‘‘โœจ
๐Ÿ“ฆ where this page comes from