compare-im7.q16(1)
๐ compare-im7.q16 โ bestie edition ๐
okay so this is compare-im7.q16, and it lives in the General Commands Manual section, so you already know it's a real one. it's part of the ImageMagick-im7.q16(1) squad of tools, and its whole personality is: take an image and its reconstruction and mathematically + visually annotate the difference between them. like a glow-up before/after but for pixels. ๐
โจ NAME โจ
compare โ mathematically and visually annotate the difference between an image and its reconstruction.
๐ธ SYNOPSIS ๐ธ
magick-im7.q16 compare input-file input-file [options] output-file
two input files. options in the middle. output at the end. that's the whole recipe bestie, no cap. ๐ซถ
๐ฆ OVERVIEW ๐ฆ
so compare-im7.q16 is one of the little icons in the ImageMagick-ims7.q16(1) suite of tools. its job? mathematically AND visually annotate the difference between an image and its reconstruction. yes, both. she does both. ๐
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 ๐
here's the whole menu of settings and operators, and I'm listing every single one because we do not gatekeep on this account. ๐
๐ Image Settings
-alphaoption โ set the alpha. the vibes includeon,activate,off,deactivate,set,opaque,copy,transparent,extract,background, orshape.-authenticatevalue โ decrypt the image with this password. ๐-backgroundcolor โ the background color.-colorspacetype โ use an alternate image colorspace.-composeoperator โ set the image composite operator.-compresstype โ the type of pixel compression used when writing the image.-decipherfilename โ convert cipher pixels to plain pixels.-defineformat:option โ define one or more image format options.-densitygeometry โ the horizontal and vertical density of the image.-depthvalue โ image depth.-dissimilarity-thresholdvalue โ the maximum distortion allowed for a (sub)image match.-encipherfilename โ convert plain pixels to cipher pixels.-extractgeometry โ extract an area from the image.-format"string"โ output formatted image characteristics.-fuzzdistance โ colors within this distance count as equal.-gravitytype โ horizontal and vertical text placement.-identifyโ identify the format and characteristics of the image.-interlacetype โ the type of image interlacing scheme.-highlight-colorcolor โ emphasize pixel differences with this color.-limittype value โ set a pixel cache resource limit.-lowlight-colorcolor โ de-emphasize pixel differences with this color.-metrictype โ measure the 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 โ the size and location of an image canvas.-respect-parenthesesโ settings stay in effect until a parenthesis boundary.-sampling-factorgeometry โ the horizontal and vertical sampling factor.-seedvalue โ seed a new sequence of pseudo-random numbers.-setattribute value โ set an image attribute.-similarity-thresholdvalue โ the minimum distortion for a (sub)image match.-sizegeometry โ the width and height of the image.-subimage-searchโ search for a subimage.-synchronizeโ synchronize the image to the storage device.-taintโ declare the image as modified.-transparent-colorcolor โ the transparent color.-typetype โ image type.-write-maskfilename โ associate a write mask with the image.-verboseโ print detailed information about the image.-virtual-pixelmethod โ the virtual pixel access method.
๐ Image Operators
-auto-orientโ automatically orient the image.-brightness-contrastgeometry โ improve the brightness / contrast of the image.-distortmethod args โ distort images according to the 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 the 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 โ the format of debugging information.-listtype โ print a list of supported option arguments.-versionโ print version information.
๐ how the file format gets figured out
by default, the image format of file is determined by its magic number. so she just knows. ๐ฎ
want to force a specific format? two ways bestie:
- put an image format name and a colon in front of the filename, like
ps:image - or just make the image type the filename suffix, like
image.ps
and if you want file to be standard input or standard output, just write -. iconic behavior honestly.
๐ the similarity rules
two images count as similar if their difference according to the specified metric and fuzz value is 0.
โ ๏ธ EXCEPT for the normalized cross correlation metric (NCC) โ with NCC, two images count as similar when their normalized cross correlation is 1.
and the default metric? NCC. yes, that's the default, remember it. ๐
๐ exit status (aka the vibe check results)
2on error โ it's giving disaster0if the images are similar- a value between
0and1if they are not similar
๐ฅ 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/
okay that's the whole page, you ate it, you're literally a compare expert now. ๐ซถโจ
this one came from ImageMagick, dated Date: 2009/01/10 01:00:00, and yes, compare-im7.q16(1) is the moment. mwah. ๐
๐๐ธ
๐ฆ where this page comes from
- ubuntu resolute: imagemagick-7.q16 8:7.1.2.18+dfsg1-1 ยท ImageMagick
- ubuntu stonking: imagemagick-7.q16 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