1 example for compare
# compare two images and create a visual diff output (as png in this case) compare image1 image2 -compose src diff.png
# compare two images and create a visual diff output (as png in this case) compare image1 image2 -compose src diff.png