Re:Image diffing using CSS
by scott_karana on Friday October 02, 2015 @06:06PM
(#10321636)
Rather than use this, you can use a custom tool built for comparing websites, for reasons similar to your use-case:
Thanks for sharing this. I actually had this exact idea last year, but BBC News implemented it better than I probably ever would have.
Re:Image diffing using CSS
by alwayslearning on Saturday October 03, 2015 @09:55AM
(#10323895)
Thanks for the links! Wraith looks really useful for my current project.
There was a web dev addon that would take your comp images and overlay them while you were firebugging a pixel-perfect layout. I found it highly useful early in my career.
Edit: found it https://addons.mozilla.org/en-US/firefox/addon/pixel-perfect...
css filters work on any element, not just images. Maybe you could overlay two absolutely positioned documents on top of each other for a visual diff.
Re:Image diffing using CSS
by eponeponepon on Friday October 02, 2015 @06:50PM
(#10321804)
I've actually done that with text before - in particular, ensuring that links in a document had the same URL in their text content as in their href - by making one red and one green (and putting them in a monospace font for good measure), you can see straight away when they don't match.
I went with red and green because I intended to try using 3d glasses, but as it turned out, 'vaguely pinkish' was enough to see a match without actually looking.
Presumably it gets deeply murky when dealing with compressed jpegs?