compare(1)
๐ compare(1) โ the group-chat guide ๐
okay so bestie, buckle up, this is compare(1) from the General Commands Manual, and it's literally the tool that mathematically AND visually annotates the difference between an image and its reconstruction. she's an overachiever. she does both. periodt. โจ
โจ NAME โจ
compare โ mathematically and visually annotate the difference between an image and its reconstruction. ๐
๐ SYNOPSIS ๐
magick compare input-file input-file [options] output-file
๐ฆ OVERVIEW ๐ฆ
so the compare program is a member of the ImageMagick(1) suite of tools, she's in the family, she has her people ๐ซถ. you use her to mathematically and visually annotate the difference between an image and its reconstruction.
want more tea about the compare command? point your browser at file:///usr/share/doc/ImageMagick-7/www/compare.html or https://imagemagick.org/script/compare.php. no cap, the docs are right there. ๐
๐ธ DESCRIPTION ๐ธ
๐ Image Settings ๐
-alphaoption โ the options are on, activate, off, deactivate, set, opaque, copy transparent, extract, background, or shape. pick your fighter ๐-authenticatevalue โ decrypt image with this password. secretive queen ๐-backgroundcolor โ background color-colorspacetype โ alternate image colorspace-composeoperator โ set image composite operator-compresstype โ type of pixel compression when writing the image-decipherfilename โ convert cipher pixels to plain pixels-defineformat:option โ define one or more image format options-densitygeometry โ horizontal and vertical density of the image-depthvalue โ image depth-dissimilarity-thresholdvalue โ maximum distortion for (sub)image match-encipherfilename โ convert plain pixels to cipher pixels-extractgeometry โ extract area from image-format"string" โ output formatted image characteristics-fuzzdistance โ colors within this distance are considered equal-gravitytype โ horizontal and vertical text placement-identifyโ identify the format and characteristics of the image-interlacetype โ type of image interlacing scheme-highlight-colorcolor โ emphasize pixel differences with this color. highkey iconic ๐-limittype value โ pixel cache resource limit-lowlight-colorcolor โ de-emphasize pixel differences with this color-metrictype โ measure differences between images with this metric-monitorโ monitor progress-negateโ replace each pixel with its complementary color-profilefilename โ add, delete, or apply an image profile-qualityvalue โ JPEG/MIFF/PNG compression level-quietโ suppress all warning messages ๐คซ-quantizecolorspace โ reduce colors in this colorspace-read-maskfilename โ associate a read mask with the image-regard-warningsโ pay attention to warning messages-repagegeometry โ size and location of an image canvas-respect-parenthesesโ settings remain in effect until parenthesis boundary-sampling-factorgeometry โ horizontal and vertical sampling factor-seedvalue โ seed a new sequence of pseudo-random numbers-setattribute value โ set an image attribute-similarity-thresholdvalue โ minimum distortion for (sub)image match-sizegeometry โ width and height of image-subimage-searchโ search for subimage-synchronizeโ synchronize image to storage device-taintโ declare the image as modified-transparent-colorcolor โ transparent color-typetype โ image type-write-maskfilename โ associate a write mask with the image-verboseโ print detailed information about the image-virtual-pixelmethod โ virtual pixel access method
๐ฅ Image Operators ๐ฅ
-auto-orientโ automatically orient image. she fixes herself, main character energy ๐-brightness-contrastgeometry โ improve brightness / contrast of the image-distortmethod args โ distort images according to given method and args-levelvalue โ adjust the level of image contrast-resizegeometry โ resize the image-rotatedegrees โ apply Paeth rotation to the image-sigmoidal-contrastgeometry โ lightness rescaling using sigmoidal contrast enhancement-trimโ trim image edges
๐ง Image Channel Operators ๐ง
-separateโ separate an image channel into a grayscale image
๐ Image Sequence Operators ๐
-cropgeometry โ cut out a rectangular region of the image-writefilename โ write images to this file
๐ Image Stack Operators ๐
-deleteindexes โ delete the image from the image sequence
โญ Miscellaneous Options โญ
-channelmask โ set the image channel mask-debugevents โ display copious debugging information-helpโ print program options-logformat โ format of debugging information-listtype โ print a list of supported option arguments-versionโ print version information
okay so here's the vibe check on formats, bestie: 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). and you can specify file as - for standard input or output. iconic, honestly.
two images are considered similar if their difference according to the specified metric and fuzz value is 0, with the exception of the normalized cross correlation metric (NCC), where two images are considered similar when their normalized cross correlation is 1. the default metric is NCC. ๐
and now the part you actually need to remember, no skipping ๐: the compare program returns2on error,0if the images are similar, or a value between0and1if they are not similar. write that down. tattoo it. it's giving exit status.
๐ 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 one's from ImageMagick, dated 2009/01/10 01:00:00, and it's filed under compare(1). go forth and diff your pixels, you absolute legend ๐ซถ๐
๐ฆ 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