On Mon, 26 Dec 2016 18:13:09 +0200 Emanuel Bronshtein wrote: > 2. visual compare images in HTML output > images can be shown using data URI: >https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/Data_URIs > The below tools can be used to detect difference in images: > Resemble.js - https://github.com/Huddle/Resemble.js/ > PerceptualDiff - https://packages.debian.org/sid/perceptualdiff > ImageMagick - https://www.imagemagick.org/Usage/compare/ - >https://packages.debian.org/sid/imagemagick > image-diff - https://github.com/uber/image-diff
I tried some of these options locally and looked at the Resemble.js demo. My conclusion was Resemble.js was the best but nodejs isn't nessecarily something you'd want to depend on, so use imagemagick to generate the "Flicker Compare" gif plus a difference_frames.gif or one of the other similar ones. The "Flicker Compare" gif is mostly useful for the big differences that matter for humans. difference_frames.gif or one of the others is better for small differences. On terminals it might be interesting to use catimg to print difference_frames.gif, if the terminal has 256-colour support. https://www.imagemagick.org/Usage/compare/ -- bye, pabs https://wiki.debian.org/PaulWise
signature.asc
Description: This is a digitally signed message part