Skip to main content

One post tagged with "Diffing"

Diffing tag description

View All Tags

Image Diffing

· 2 min read
Toshi Moto
Front End Engineer

Understanding diffs are at the core of Webshot Archive. This blog post will explain how diffs work and where they are used.

Diffs in Github Comments on PR

When the Webshot Archive Github Action runs, your screenshots are uploaded to our hosted storage. The server will then create a diff of the new screenshot and the screenshot the action tells it to compare to. This diff is then uploaded to the Webshot Archive storage along with the original screenshot and added to the Github comment on your PR.

Github Comment with Diff

You can also see the diff on the Screenshot Comparison Carousel. In this example the diff is almost 4000 pixels which is a lot but can give some context to what a little value might be. In my opinion 250 pixels is a good starting point. Some pages though may have a lot of noise and a higher value may be needed which can be done on an individual basis (details below).

Screenshot Comparison Carousel