đ compare - mathematically and visually annotate the difference between an image and its reconstruction.
| Use Case | Command | Description |
|---|---|---|
| đ Compare two images | compare image1.png image2.png diff.png | Generate a visual difference image. |
| đ Show metric value | compare -metric AE input1.png input2.png null: | Output the absolute error count. |
| đ Find subimage | compare -subimage-search large.png small.png result.png | Search for a smaller image within a larger one. |
| đī¸ Set fuzz factor | compare -fuzz 10% input1.png input2.png diff.png | Treat colors within 10% as equal. |
compare-im6.q16 input-file input-file [options] output-file
đˇ The compare-im6.q16 program is a member of the ImageMagick-ims6.q16(1) suite of tools. Use it to mathematically and visually annotate the difference between an image and its reconstruction.
đ For more information about the compare command, point your browser to file:///usr/share/doc/imagemagick-6-common/html/www/compare.html (on debian system you may install the imagemagick-6 package) or http://imagemagick.org/script/compare.php.
-alpha option đ¨ â on, activate, off, deactivate, set, opaque, copy, transparent, extract, background, or shape-authenticate value đ â decrypt image with this password-background color đŧī¸ â background color-channel type đĄ â apply option to select image channels-colorspace type đ â alternate image colorspace-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-density geometry đ â horizontal and vertical density of the image-depth value đī¸ â image depth-dissimilarity-threshold value đ â maximum distortion for (sub)image match-encipher filename đ â convert plain pixels to cipher pixels-extract geometry âī¸ â extract area from image-format "string" đ â output formatted image characteristics-fuzz distance đī¸ â colors within this distance are considered equal-gravity type đ â horizontal and vertical text placement-identify âšī¸ â identify the format and characteristics of the image-interlace type đ â type of image interlacing scheme-highlight-color color đĄ â emphasize pixel differences with this color-limit type value đ§Ž â pixel cache resource limit-lowlight-color color âĢ â de-emphasize pixel differences with this color-mask filename đ â associate a mask with the image-metric type đ â measure differences between images with this metric-monitor đ â monitor progress-passphrase filename đ â get the passphrase from this file-profile filename đī¸ â add, delete, or apply an image profile-quality value ⨠â JPEG/MIFF/PNG compression level-quiet đ¤Ģ â suppress all warning messages-quantize colorspace đ¨ â reduce colors in this colorspace-regard-warnings â ī¸ â pay attention to warning messages-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-seed value đą â seed a new sequence of pseudo-random numbers-set attribute value đˇī¸ â set an image attribute-similarity-threshold value đ â minimum distortion for (sub)image match-size geometry đ â width and height of image-subimage-search đ â search for subimage-synchronize đ â synchronize image to storage device-taint đ´ â declare the image as modified-transparent-color color đĢĨ â transparent color-type type đŧī¸ â image type-verbose đĸ â print detailed information about the image-virtual-pixel method đ§Ŧ â virtual pixel access method-brightness-contrast geometry âī¸ â improve brightness / contrast of the image-distort method args đ â distort images according to given method and args-level value đ â adjust the level of image contrast-resize geometry đ â resize the image-rotate degrees đ â apply Paeth rotation to the image-separate âī¸ â separate an image channel into a grayscale image-trim âī¸ â trim image edges-write filename đž â write images to this file-crop geometry âī¸ â cut out a rectangular region of the image-delete indexes đī¸ â delete the image from the image sequence-debug events đ â display copious debugging information-help â â print program options-log format đ â format of debugging information-list type đ â print a list of supported option arguments-version đˇī¸ â print version informationđ 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.
đ 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.
đ The compare program returns 2 on error, 0 if the images are similar, or a value between 0 and 1 if they are not similar.
0 â
â Images are similar (difference is 0 according to metric and fuzz, or NCC is 1).1 â ī¸ â Images are dissimilar (value between 0 and 1 for metric).2 â â An error occurred.Copyright (C) 1999-2020 ImageMagick Studio LLC. Additional copyrights and licenses apply to this software, see file:///usr/share/doc/imagemagick-6-common/html/www/license.html (on debian system you may install the imagemagick-6 package) or http://imagemagick.org/script/license.php.
Generated by phpman v4.9.27 · Markdown · JSON · MCP Author: Che Dong Under GNU General Public License
2026-07-18 20:56 @2600:1f28:365:80b0:b91e:58eb:6587:15c8
CrawledBy CCBot/2.0 (https://commoncrawl.org/faq/)
Enhanced by LLM: deepseek-v4-flash / taotoken.net / www.chedong.com - original format