difference + detective = difftective
difftective
is a tool for detecting visual differences in images/PDFs.
Document looking like the same? No update history? Find visual differences with difftective
:
Note: There are other services which provide text diff for PDFs; difftective
, however provides an easy way to detect changes through visual differences.
expected | actual | diff |
---|---|---|
On a classic Mapbox example:
expected | actual | diff |
---|---|---|
Using go install
:
go install github.com/burntcarrot/difftective@latest
$ difftective
difftective v0.1.0 - Detect differences in images and PDFs
Available commands:
pdf Use PDFs
image Use images
Flags:
--help Get help for the 'difftective' command.
Detect differences in PDFs:
$ difftective pdf -p policy-old.pdf -n policy-new.pdf -o diff.png
Difference: 0.093%
Saved difference to diff.png
Detect differences in images:
$ difftective image -p examples/mapbox/mapbox1.png -n examples/mapbox/mapbox2.png -o diff.png
Difference: 38.301%
Saved difference to diff.png
difftective
is released under the MIT license. See LICENSE.