Skip to content

About

Chrome extension that adds heatmap visualization, slider comparison, and pixel-level diff stats to image diffs in Bitbucket pull requests.

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

3 Commits

Folders and files

Repository files navigation

Bitbucket Image Diff Heatmap

A Chrome extension that adds heatmap visualization, diff-only view, and slider comparison to image diffs in Bitbucket pull requests.

The Problem

Bitbucket shows image changes as a simple before/after side-by-side, making it hard to spot subtle differences:

Default Bitbucket image diff

The Solution

This extension injects a toolbar with four viewing modes directly into the PR diff:

Toolbar with viewing modes and pixel stats

Heatmap

Color-coded overlay highlighting exactly where pixels changed. Adjustable opacity with a blue-to-red gradient (low to high difference).

Heatmap view

Diff Only

Isolates changed pixels on a dark background — unchanged areas are dimmed so modifications stand out immediately.

Diff only view

Slider

Drag to compare before and after side by side in a single view.

Slider comparison

Features

  • Four viewing modes — Normal, Heatmap, Diff Only, Slider
  • Pixel-level stats — shows exact count and percentage of changed pixels
  • Lazy loading — diff is computed only when you switch away from Normal mode
  • SPA-aware — works with Bitbucket's single-page navigation via MutationObserver

Installation

From source (developer mode)

  1. Clone this repository
  2. Open chrome://extensions in Chrome
  3. Enable Developer mode (top-right toggle)
  4. Click Load unpacked and select the project folder

From Chrome Web Store

Install directly from the Chrome Web Store.

How It Works

The extension runs as a content script on bitbucket.org. It detects image diff pairs ([data-testid="image-diff"]), fetches both images, computes per-pixel differences on a canvas, and renders the heatmap/diff/slider views inline.

About

Chrome extension that adds heatmap visualization, slider comparison, and pixel-level diff stats to image diffs in Bitbucket pull requests.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages