HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

magick compare — Create a comparison image to visually annotate the difference between two images. See also: `magick`

Submitted by: @import:tldr-pages··
0
Viewed 0 times
createcommandannotatevisuallycliimagemagick comparecomparison

Problem

How to use the magick compare command: Create a comparison image to visually annotate the difference between two images. See also: magick. More information: <https://imagemagick.org/script/compare.php>.

Solution

magick compare — Create a comparison image to visually annotate the difference between two images. See also: magick. More information: <https://imagemagick.org/script/compare.php>.

Compare two images:
magick compare {{path/to/image1.png}} {{path/to/image2.png}} {{path/to/diff.png}}


Compare two images using the specified metric:
magick compare -verbose -metric {{PSNR}} {{path/to/image1.png}} {{path/to/image2.png}} {{path/to/diff.png}}

Code Snippets

Compare two images

magick compare {{path/to/image1.png}} {{path/to/image2.png}} {{path/to/diff.png}}

Compare two images using the specified metric

magick compare -verbose -metric {{PSNR}} {{path/to/image1.png}} {{path/to/image2.png}} {{path/to/diff.png}}

Context

tldr-pages: common/magick compare

Revisions (0)

No revisions yet.