Closed Flicksie closed 3 years ago
Sorry for a late response — it's difficult to say for sure since there's no self-contained reproducible test case I could debug, but this bit:
200x30 - LENGTH 7228 if Red or 6927 if Green
Gives an impression that instead of raw image data, pixelmatch
receives a buffer in some compressed image format, because raw image data is always width * height * 4
(all pixels as RGBA), and not dependent on colors.
related to #76
This code used to work just as expected in v4.0.1, when I last used pixelmatch, in v5.x.x it doesnt work anymore:
This is used to compared a image overlay over the image from URL_C, both B and A are different frames that C can have. Everything worked normally back then but now it just throws errors.
Is there something we are missing that changed from v4 to v5? the docs didnt mention any changes regarding the way we're using it and the only thing i found while reading the code were some comparations that weren't there before. So we just rolled back to v4. But we'd like to know if this is an actual bug or something amiss in our end.
thanks in advance.
also I have the same questioning about the logic behind "width height 4" from #76, that doesn't seem to make much sense at least for me.