compare-im7.q16hdri(1)
π compare β mathematically and visually annotate the difference between an image and its reconstruction π
okay bestie, pull up a chair, we're talking about compare-im7.q16hdri from the ImageMagick family (yes, the ImageMagick-im7.q16hdri(1) squad). She's the friend in the group chat whose whole personality is spotting the difference between an image and its reconstruction β mathematically AND visually, no cap. β¨
πΈ SYNOPSIS πΈ
magick-im7.q16hdri compare input-file input-file [options] output-file
Two input files. Not one. Two. She's comparing, that's the whole point, okay? π
π¦ OVERVIEW π¦
compare-im7.q16hdri is a full member of the ImageMagick-im7.q16hdri(1) suite of tools β like, she has a membership card and everything π
. Her job: mathematically and visually annotate the difference between an image and its reconstruction.
Want the full lore? Point your browser at:
file:///usr/share/doc/imagemagick-7-common/html/www/compare.html- or
https://imagemagick.org/script/compare.php
β¨ DESCRIPTION β¨
π Image Settings
These are the settings, bestie. The vibe-setters. The main character knobs.
-alphaoption β on, activate, off, deactivate, set, opaque, copy transparent, extract, background, or shape-authenticatevalue β decrypt image with this password-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-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
The ones that actually do stuff to your pixels. Obsessed.
-auto-orientβ automatically orient image-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
The odds and ends. The little guys. We love them.
-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
π The Fine Print (but make it cute)
By default, the image format of file is figured out from its magic number β like a vibe check, but for file types. Want to 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 you can specify file as - for standard input or output. π«Ά
Two images are considered similar if their difference β according to the specified metric and fuzz value β is 0. There's one exception though, and it's the normalized cross correlation metric (NCC): with NCC, two images count as similar when their normalized cross correlation is 1. The default metric is NCC. π
Heads up bestie: the compare program returns2on error,0if the images are similar, or a value between0and1if they are not similar. Check that exit status, fr fr. π
π¦ SEE ALSO π¦
π COPYRIGHT π
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- or
https://imagemagick.org/license/
and that's the whole page, bestie π go forth and diff those images. this was ImageMagick, dated 2009/01/10 01:00:00 β yeah she's been iconic since forever, we stan an elder. periodt. π β¨
π¦ where this page comes from
- ubuntu resolute: imagemagick-7.q16hdri 8:7.1.2.18+dfsg1-1 Β· ImageMagick
- ubuntu stonking: imagemagick-7.q16hdri 8:7.1.2.31+dfsg1-1 Β· ImageMagick
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms