tldr/pages/common/magick-compare.md

14 lines
459 B
Markdown

# 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}}`