• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

trotzig / diffux / 104
99%

Build:
DEFAULT BRANCH: master
Ran 06 Feb 2014 08:28PM UTC
Jobs 2
Files 19
Run time –
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
104

push

travis-ci

lencioni
Use translucent before-image + bright color for diff

Previously we were generating a diff image that only contained grayscale
pixels that were different between the two images. While this was
effective at helping us spot that there were differences, we spent a lot
of time looking at the three images to figure out where the differences
actually were.

To help remedy this, we believe that it makes sense to render a faded
version of the "before" image (baseline) underneath the diff pixels. To
make sure that the diff pixels aren't lost on top of this translucent
image, we are rendering them in a bright pink color. We chose bright
pink because it is very noticeable and also unlikely to dominate most
snapshots.

We set the opacity of the diff pixels to be at minimum double the
opacity of the translucent image. This will help even the smallest
differences actually be noticeable.

At the same time, I changed the magic array-like access on the ChunkyPNG
images to use `get_pixel` and `set_pixel` because these methods do the
same thing as the magic array-like accessors but without checking of the
bounds. Because we are in a tight loop and because we have already
defined the bounds of the image, this should improve the performance of
the diffs without sacrificing any robustness.

Change-Id: I964ac3af1

293 of 298 relevant lines covered (98.32%)

34.54 hits per line

Jobs
ID Job ID Ran Files Coverage
1 104.1 (2.0.0) 06 Feb 2014 08:29PM UTC 0
98.32
Travis Job 104.1
2 104.2 (2.1.0) 06 Feb 2014 08:28PM UTC 0
98.32
Travis Job 104.2
Source Files on build 104
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #104
  • 57fc0668 on github
  • Prev Build on master (#103)
  • Next Build on master (#105)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc