n7olkachev / imgdiff Goto Github PK
View Code? Open in Web Editor NEWFaster than the fastest in the world pixel-by-pixel image difference tool.
License: MIT License
Faster than the fastest in the world pixel-by-pixel image difference tool.
License: MIT License
imgdiff/pkg/imgdiff/imgdiff.go
Line 30 in 3eef05c
I'm confused why this line is like this. I'd assume the threshold (from 0 to 1) only needs to be multiplied once?
ODiff creator is here :D
I've compared two images to test this and I got this output
←[1;31mFailure!←[0m Images are different.
Different pixels: ←[1;31m670866←[0m
Is this supposed to look like this?
I was wondering what licence does the project has?
Version: 1.0.0
It computed the number of different pixels, but the output is empty.
Example:
curl -O https://user-images.githubusercontent.com/640840/112396875-03837d80-8ccf-11eb-8aa2-ef605eb6ab60.png
curl -O https://user-images.githubusercontent.com/640840/112396905-0da57c00-8ccf-11eb-8cd3-dab6d42cbfa1.png
./bin/imgdiff-darwin-amd64 --threshold 0.01 112396875-03837d80-8ccf-11eb-8aa2-ef605eb6ab60.png 112396905-0da57c00-8ccf-11eb-8cd3-dab6d42cbfa1.png output_diff.png
I get this output:
Failure! Images are different.
Different pixels: 3992
But the file is empty:
0B 24 Mar 18:34 output_diff.png
Any ideas? This is a fantastic tool that really boosted our end-to-end screenshots tests. I get these zero-byte files every ~1-2 in 100 diffs.
To integrate your tool in an other projects, the module path must be changed from imgdiff
to github.com/n7olkachev/imgdiff
.
So one can use your project as package. It would be great, e.g. in unit tests.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.