looks-same icon indicating copy to clipboard operation
looks-same copied to clipboard

Make the equal pixels transparent

Open flore77 opened this issue 9 years ago • 4 comments

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

test

rect

diff

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].

flore77 avatar Aug 27 '15 11:08 flore77

anything stopping us merging this ?

kunwardeep avatar Feb 26 '18 02:02 kunwardeep

sorry, will check it today

sipayRT avatar Feb 26 '18 07:02 sipayRT

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'.

maksim-kucherov avatar Mar 01 '18 08:03 maksim-kucherov

Any update on this ?

mickaelperrin avatar Apr 22 '20 11:04 mickaelperrin