Skip to content

Instantly share code, notes, and snippets.

@mperlet
Created September 6, 2018 10:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mperlet/ec578a76fec2b229a92cc5b666a48151 to your computer and use it in GitHub Desktop.
Save mperlet/ec578a76fec2b229a92cc5b666a48151 to your computer and use it in GitHub Desktop.
Diff two images with imagemagick without saving them
#!/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