{
    "mode": "man",
    "parameter": "compare-im6",
    "section": "1",
    "url": "https://www.chedong.com/phpMan.php/man/compare-im6/1/json",
    "generated": "2026-06-16T06:21:09Z",
    "synopsis": "compare-im6.q16 input-file input-file [options] output-file",
    "sections": {
        "NAME": {
            "content": "compare - mathematically and visually annotate the difference between an image and its recon‐\nstruction.\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "compare-im6.q16 input-file input-file [options] output-file\n",
            "subsections": []
        },
        "OVERVIEW": {
            "content": "The compare-im6.q16 program is a member of the ImageMagick-ims6.q16(1) suite of  tools.   Use\nit  to  mathematically  and  visually annotate the difference between an image and its recon‐\nstruction.\n\nFor   more   information   about   the   compare   command,    point    your    browser    to\nfile:///usr/share/doc/imagemagick-6-common/html/www/compare.html  (on  debian  system you may\ninstall the imagemagick-6 package) or http://imagemagick.org/script/compare.php.\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "Image Settings:\n-alpha option        on, activate, off, deactivate, set, opaque, copy\ntransparent, extract, background, or shape\n-authenticate value  decrypt image with this password\n-background color    background color\n-channel type        apply option to select image channels\n-colorspace type     alternate image colorspace\n-compose operator    set image composite operator\n-compress type       type of pixel compression when writing the image\n-decipher filename   convert cipher pixels to plain pixels\n-define format:option\ndefine one or more image format options\n-density geometry    horizontal and vertical density of the image\n-depth value         image depth\n-dissimilarity-threshold value\nmaximum distortion for (sub)image match\n-encipher filename   convert plain pixels to cipher pixels\n-extract geometry    extract area from image\n-format \"string\"     output formatted image characteristics\n-fuzz distance       colors within this distance are considered equal\n-gravity type        horizontal and vertical text placement\n-identify            identify the format and characteristics of the image\n-interlace type      type of image interlacing scheme\n-highlight-color color\nemphasize pixel differences with this color\n-limit type value    pixel cache resource limit\n-lowlight-color color\nde-emphasize pixel differences with this color\n-mask filename       associate a mask with the image\n-metric type         measure differences between images with this metric\n-monitor             monitor progress\n-passphrase filename get the passphrase from this file\n-profile filename    add, delete, or apply an image profile\n-quality value       JPEG/MIFF/PNG compression level\n-quiet               suppress all warning messages\n-quantize colorspace reduce colors in this colorspace\n-regard-warnings     pay attention to warning messages\n-repage geometry     size and location of an image canvas\n-respect-parentheses settings remain in effect until parenthesis boundary\n-sampling-factor geometry\nhorizontal and vertical sampling factor\n-seed value          seed a new sequence of pseudo-random numbers\n-set attribute value set an image attribute\n-similarity-threshold value\nminimum distortion for (sub)image match\n-size geometry       width and height of image\n-subimage-search     search for subimage\n-synchronize         synchronize image to storage device\n-taint               declare the image as modified\n-transparent-color color\ntransparent color\n-type type           image type\n-verbose             print detailed information about the image\n-virtual-pixel method\nvirtual pixel access method\n\nImage Operators:\n-brightness-contrast geometry\nimprove brightness / contrast of the image\n-distort method args\ndistort images according to given method and args\n-level value         adjust the level of image contrast\n-resize geometry     resize the image\n-rotate degrees      apply Paeth rotation to the image\n-separate            separate an image channel into a grayscale image\n-trim                trim image edges\n-write filename      write images to this file\n\nImage Sequence Operators:\n-crop geometry       cut out a rectangular region of the image\n\nImage Stack Operators:\n-delete indexes      delete the image from the image sequence\n\nMiscellaneous Options:\n-debug events        display copious debugging information\n-help                print program options\n-log format          format of debugging information\n-list type           print a list of supported option arguments\n-version             print version information\n\nBy default, the image format of `file' is determined by its magic number.  To specify a  par‐\nticular image format, precede the filename with an image format name and a colon (i.e. ps:im‐\nage) or specify the image type as the filename suffix (i.e. image.ps).  Specify 'file' as '-'\nfor standard input or output.\n\nTwo  images  are considered similar if their difference according to the specified metric and\nfuzz value is 0, with the exception of the normalized cross correlation metric  (NCC),  where\ntwo  images  are considered similar when their normalized cross correlation is 1. The default\nmetric is NCC.\n\nThe compare program returns 2 on error, 0 if the images are similar, or a value between 0 and\n1 if they are not similar.\n",
            "subsections": []
        },
        "SEE ALSO": {
            "content": "ImageMagick-im6.q16(1)\n\n",
            "subsections": []
        },
        "COPYRIGHT": {
            "content": "",
            "subsections": [
                {
                    "name": "Copyright  (C)  1999-2020 ImageMagick Studio LLC. Additional copyrights and licenses apply to",
                    "content": "this software, see file:///usr/share/doc/imagemagick-6-common/html/www/license.html  (on  de‐‐\nbian  system  you may install the imagemagick-6 package) or http://imagemagick.org/script/li‐‐"
                },
                {
                    "name": "cense.php",
                    "content": "ImageMagick                           Date: 2009/01/10 01:00:00                   compare-im6.q16(1)"
                }
            ]
        }
    },
    "summary": "compare - mathematically and visually annotate the difference between an image and its recon‐ struction.",
    "flags": [],
    "examples": [],
    "see_also": [
        {
            "name": "ImageMagick-im6.q16",
            "section": "1",
            "url": "https://www.chedong.com/phpMan.php/man/ImageMagick-im6.q16/1/json"
        }
    ]
}