looks-same
looks-same copied to clipboard
Make the equal pixels transparent
Need
As a user
I need to see the differences immediately
So that I don't struggle to see the little ones
Deliverables
- [ ] Possibility to make the equal pixels of the diff image transparent
- [ ] tests
Solution
Adding another field to the options object
:
options = {
transparency: {Number} between 0 - 255 // default 255
};
Modifying the setPixel method from the prototype
of PNGOut
, to receive another parameter, that will be set on the alpha channel
, i.e this._png.data[idx +3]
.
anything stopping us merging this ?
sorry, will check it today
The fix will really help us. We need some universal automatic way to find out 'diff zone' in diff images. So, transparent pixel will be a marker of 'diff pixel'.
Any update on this ?