Skip to content

Calculate similarity of 2 images. Supports: jpeg, png

License

Notifications You must be signed in to change notification settings

AskAlexSharov/imgdiff

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

imgdiff - cli tool to calculate difference between images. Results are stable for next transformations: "scale-up/scale-down", color adjustment, quality reduce Returns % of difference

Thanks https://github.com/Nr90/imgsim/ for Average and Difference hash calculations

Install

go get -u github.com/AskAlexSharov/imgdiff

Use

imgdiff ./avg/test-png-original.png ./avg/test-png-damaged.png
Difference: 2%

Or you can use URL of image

imgdiff https://raw.githubusercontent.com/AskAlexSharov/imgdiff/master/avg/test-png-original.png https://raw.githubusercontent.com/AskAlexSharov/imgdiff/master/avg/test-png-damaged.png
Difference: 2% 

Features

  • JPEG
  • PNG
  • Local files and download from Url

License

imgdiff is MIT licensed

About

Calculate similarity of 2 images. Supports: jpeg, png

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages