[webkit-dev] Reflecting pixel delta "distance" in ImageDiff

Elliot Poger epoger at chromium.org
Mon Jun 18 13:29:39 PDT 2012


Food for thought... Skia's "skdiff" tool generates two diff images for each
image pair:

   - 1. every pixel which is different at all between images 1 & 2 shows up
   as white
   - 2. every pixel shows the color difference between images 1 & 2  (much
   more subtle)

For an example of what this looks like, see
http://skia.googlecode.com/svn/trunk/tools/tests/skdiff/test1/output-expected/index.html


On Fri, Jun 15, 2012 at 7:24 PM, Tony Payne <tpayne at chromium.org> wrote:

> I would like to change chromium's ImageDiff to reflect the magnitude of
> pixel changes. Currently, if the pixel has any difference, the entire pixel
> is marked as 100% red. I'd like to change it so that miniscule difference
> are 20% red and large differences are 100% red. Looking at the code for CG,
> gtk and Win versions of ImageDiff, I think they already do something
> similar. Is this correct?
>
> Would anyone be opposed to such a change? See the attached image for an
> example of how this could assist in debugging regressions. It would
> certainly be enormously useful in my color management efforts.
>
> Thanks,
> Tony
>
> The CL in question is https://bugs.webkit.org/show_bug.cgi?id=89253
>
> _______________________________________________
> webkit-dev mailing list
> webkit-dev at lists.webkit.org
> http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-dev/attachments/20120618/b0f9c027/attachment.html>


More information about the webkit-dev mailing list