loki icon indicating copy to clipboard operation
loki copied to clipboard

Showing reference and current images along with the diff result

Open Muritavo opened this issue 3 years ago • 1 comments

This PR enables a feature requested by #144 as it's useful for when comparing complex UI changes.

What does it change:

  • Added a new property called includeReferenceOnDiff (default: false)
  • When the property is enabled, the reference image and the current images are concatenated side by side along with the diff result.

Currently is set as draft because it needs the following adjustments:

Make the property work on the other two diff engines, if someone want to do it, fell free to contribute to this PR as well

Muritavo avatar Mar 01 '21 02:03 Muritavo

Adding here so it is documented:

For the GraphicsMagick library there is a method montage, that combines multiple images side by side.

As for the looks-same library, the createDiff without diff property can be used to manually write the file to disk, with the other references

Muritavo avatar Mar 01 '21 02:03 Muritavo