pyvips
pyvips copied to clipboard
Identical pixel buffers generate different histograms
This is a follow-up to the issue reported in a comment at https://stackoverflow.com/questions/58500459.
The attached images have identical pixel buffers, but generate different values through scanline_checksum(). Interestingly enough, their on-disk form is different, with img1.png being 3115 bytes, and img2.png 3019.
img1.png:

img2.png:

Vips info:
pyvips2.1.8, ABI modelibvips8.4.5, installed from ubuntu bionic package
Just checked with 2.1.8 / 8.8.3 built in API mode, identical results.
Nevermind, I just realised the stupid and obvious difference between these two. I'll get better examples uploaded.
No problem, thanks for investigating this!