Commit Graph

13 Commits

Author SHA1 Message Date
1c26c42f71 Add GraphicMagick compatibility
GraphicMagick branched off ImageMagick's version 5.5.2 in 2002 after
irreconcilable differences emerged in the developers' group.[1]

Some systems might have GraphicMagick and diff-image works just fine with
it, so add a few lines to automatically support it as well, but expect
users to install the compatibility package that adds the symlinks for
commands 'compare' and 'montage'.

[1] https://en.wikipedia.org/wiki/GraphicsMagick

Closes: #37
2023-09-04 16:25:07 -07:00
281ea97e2c Merge pull request #27 from hannesa2/OnlyDiffFileOutputOption
Option to only copy diff image without showing WIP
2022-12-21 11:57:17 -08:00
25364cccc7 Option to only copy diff image without showing 2022-12-20 12:53:04 +01:00
8996893322 Fix -N option. 2022-12-20 02:42:37 -08:00
4ac1148428 quote paths on exiftool calls 2020-12-15 14:03:48 -03:00
712d362027 Ensure cleaner diffs by sorting the metadata 2020-10-10 20:42:28 +02:00
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