-
Notifications
You must be signed in to change notification settings - Fork 33
Open
Description
Would you accept a PR (or separate PRs) for diff-image that:
- adds an exact mode that only considers the image data the same if they are exactly the same. Is this already handled by
-f 0? (i.e. does 0 fuzz require an exact match?). If not already handled by-f 0, this could be specified by-f xor-x(the latter should either be mutually exclusive with-f, or one should always override the other, or there should be a defined order precedence, like first argument is used or last argument is used) - adds a "no comparison image" mode that does not generate a comparison file, but that will output a message to stdout if the image data for the files is different (and not output anything to stdout if they're the same). If this option is enabled along with "exact mode", then
identify -format %# <file>could be run for each argument file & compared, which seems to be faster than thecompare. If "exact mode" isn't specified, and ifcomparecan output programmatic values other than equals/not equals (like "10% different", or "491 pixels different"), then that info could be included in the stdout message. - updates the exit codes to be:
0: both metadata & image data same
1: metadata different, image data same
2: metadata same, image data different
3: both metadata & image data different
-1: error (could have different negatives for different errors as negative exit codes count down from 255)
Metadata
Metadata
Assignees
Labels
No labels