Commit Graph

7 Commits

Author SHA1 Message Date
67a9dd23bd Add density flag
This makes small images when the image size is too large for the screen.
It also runs much faster when images are large.
2020-06-22 17:08:43 -06:00
909290e813 Work around Preview's failure to show large images (> 10000 wide in my
experience) by simply showing the two images instead of the diff.
2019-04-10 18:22:50 -07:00
b7cce75c3f Don't perform the first call to compare if we've seen a difference
in the EXIF info.

This means that we won't run the (potentially expensive) first compare if we
have seen a metadata change, in particular a file size change.  We already
know that there's a difference.
2019-04-10 18:21:00 -07:00
ec81932335 If the second argument is a directory, append the filename from the
first argument.

This matches the behavior of diff.
2019-03-07 15:04:26 -08:00
a01cbe6b9f Add background color flag to diff-image 2019-01-29 11:42:02 -08:00
670ec172d6 Add Linux support 2018-10-21 15:02:14 +01:00
92caf772dc Break the script into two, so that we can use it as a normal CLI command,
as well as the existing "git diff" functionality.
2018-04-20 10:24:07 -07:00