Bug#851359: diffoscope: Improve support for comparing images

Paul Wise pabs at debian.org
Thu Apr 13 07:34:03 UTC 2017


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: This is a digitally signed message part
URL: <http://lists.alioth.debian.org/pipermail/reproducible-builds/attachments/20170413/f82c12c1/attachment.sig>


More information about the Reproducible-builds mailing list