Created
September 6, 2018 10:32
-
-
Save mperlet/ec578a76fec2b229a92cc5b666a48151 to your computer and use it in GitHub Desktop.
Diff two images with imagemagick without saving them
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# TODO: Add Readme | |
# TODO: Add Example | |
# TODO: Check if imagemagick is installed | |
IMG_A="$1" | |
IMG_B="$2" | |
convert "$IMG_A" "$IMG_B" <(compare "$IMG_A" "$IMG_B" -) +append - | display |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment