Upstream patches:
Mentioned by Tyler during a meeting: add the ability to diff images in Gerrit. Upstream has the image-diff JavaScript plugin for it. See README/screenshots at https://github.com/GerritCodeReview/plugins_image-diff#image-diff
That requires an inline build with bazel build plugins/image-diff to install the dependencies.
We also found out a diff is included inside Gerrit core itself albeit hidden behind a feature flag (UiFeature__new_image_diff_ui), this approach is privileged instead of relying on the plugin.
The plugin or experiment integrates the Resemble.js library and can be tested against:
Image from ResembleJS demo site: https://gerrit.wikimedia.org/r/c/test/gerrit-ping/+/1051109/1..2/People.jpg
https://gerrit.wikimedia.org/r/c/operations/mediawiki-config/+/902211/1/static/images/project-logos/dkwikimedia.png which slightly change the Danmark Wikimedia logo:
| Before | After |
|---|---|
Which then let you see the differences (using cyan but that can be changed via a color picker):
Make the images transparent to better see the diff:
Or go in gray mode:
There are some CSS glitches though but that do not seem too worry some.













