man > compare(1)

📛 NAME

compare — mathematically and visually annotate the difference between an image and its reconstruction.

🚀 Quick Reference

Use CaseCommandDescription
Compare two images and output differencecompare image1.png image2.png diff.pngGenerate a visual difference annotation image
Measure difference with a specific metriccompare -metric PSNR image1.png image2.png diff.pngUse PSNR, MAE, MSE, RMSE, or NCC metrics
Highlight differences in a colorcompare -highlight-color red image1.png image2.png diff.pngEmphasize pixel differences in red
Search for a subimage within a larger imagecompare -subimage-search large.png sub.png result.pngLocate and annotate subimage matches
Ignore color differences within a tolerancecompare -fuzz 5% image1.png image2.png diff.pngTreat colors within 5% as equal
Use a custom composite operatorcompare -compose src image1.png image2.png diff.pngSet the image composite operator for the diff
Resize images before comparisoncompare -resize 800x600 image1.png image2.png diff.pngResize input images to a common geometry
Suppress warnings for quiet operationcompare -quiet image1.png image2.png diff.pngSuppress all warning messages (exit code only)
Get detailed information about imagescompare -verbose image1.png image2.png diff.pngPrint detailed info about the images and comparison
List supported metric typescompare -list metricPrint a list of all supported metric arguments

📋 SYNOPSIS

compare-im6.q16 input-file input-file [options] output-file

📖 OVERVIEW

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.

🔧 DESCRIPTION

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.

đŸ–ŧī¸ Image Settings

🎨 Image Operators

đŸ“Ļ Image Sequence Operators

đŸ—‚ī¸ Image Stack Operators

âš™ī¸ Miscellaneous Options

đŸšĒ Exit Codes

The compare program returns:

📚 SEE ALSO

ImageMagick-im6.q16(1)

ÂŠī¸ COPYRIGHT

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.

compare(1)
📛 NAME 🚀 Quick Reference 📋 SYNOPSIS 📖 OVERVIEW 🔧 DESCRIPTION
đŸ–ŧī¸ Image Settings 🎨 Image Operators đŸ“Ļ Image Sequence Operators đŸ—‚ī¸ Image Stack Operators âš™ī¸ Miscellaneous Options
đŸšĒ Exit Codes 📚 SEE ALSO ÂŠī¸ COPYRIGHT

Generated by phpman v4.10.0-7-g98e9fd5 · Markdown · JSON · MCP Author: Che Dong Under GNU General Public License
2026-09-03 17:27 @216.73.216.146
CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
Valid XHTML 1.0 Transitional!Valid CSS!

^_top_^