difftective

command module
v0.0.0-...-7e20ec9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 20, 2022 License: MIT Imports: 12 Imported by: 0

README

difftective

difference + detective = difftective

difftective is a tool for detecting visual differences in images/PDFs.

Examples

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
Old Document New Document Diff Document

On a classic Mapbox example:

expected actual diff
Old Map New Map Map Difference

Installation

Using go install:

go install github.com/burntcarrot/difftective@latest

Usage

$ 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

License

difftective is released under the MIT license. See LICENSE.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL