getsentry / action-visual-snapshot

Save and compare your visual snapshots
MIT License
38 stars 7 forks source link

feat(odiff): replicate pixelmatch alpha option #77

Closed JonasBa closed 2 years ago

JonasBa commented 2 years ago

When generating diffs, we want to expose the diffed pixels compare to the rest of the images (pixelmatch was doing that), but we lost the functionality when migrating to odiff. This PR reintroduces that functionality by multiplying the source image with a white transparent color and overlaying the diff mask.

JonasBa commented 2 years ago

@billyvg yeah, let me checkout master and copy this test so we can see what pixelmatch shows. It's very much the same, minus the antialiasing

JonasBa commented 2 years ago

@billyvg this is what the diff looks like (same test using pixelmatch on master)

alpha-diff