Skip to content

Tool for detecting visual differences in images/PDFs.

License

Notifications You must be signed in to change notification settings

burntcarrot/difftective

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Tool for detecting visual differences in images/PDFs.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages