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: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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
⌂ 换网址