mapbox / pixelmatch

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

Example of anti-aliasing detection #75

Closed brucou closed 4 years ago

brucou commented 5 years ago

Congratulations for the great lib. I would like to know if you have an example of usage of the library which features the anti-aliasing algorithm that is being used. I am thinking of one image, with aliasing and without aliasing, applying the library and finding that the aliased and anti-aliased images are identical. That would be helpful for me for an article that I am writing on the subject. Thanks!

Edit: i am also wondering if this is used by mapbox and for what purposes? I understand that fast is important for mobile. I wonder what is the specific application for maps?

mourner commented 4 years ago

The third row in the examples section is a good example of nearly-identical images where one is aliased and other not.

This library is primarily used in rendering tests for Mapbox GL.