mapbox / pixelmatch

The smallest, simplest and fastest JavaScript pixel-level image comparison library
ISC License
6.1k stars 304 forks source link

PixelMatch leakinng Data Buffer #138

Closed siddhant7781 closed 1 month ago

siddhant7781 commented 1 month ago

I have this code:

const numDiffPixels = pixelmatch( img1.data, img2.data, diff.data, width, height, { threshold: 0.1 } );

when the code executes the whole buffer is leaking as an error message. Why is this happening any Idea? I am making sure everything is there needed to execute this function.  It throws no error message at all, only Buffer values.
mourner commented 1 month ago

There's no way to diagnose the issue without a reproducible test case, so I'll close.