jimp-dev / jimp-dev/jimp

Dark Diff

Open
#887 0 comments 0 reactions 0 assignees View on GitHub
enhancement help wanted
Dominant language
TypeScript
Stars
14.7k
Forks
777
PR merge metrics
No merged PRs in 30d

Description

# Expected Behavior

Dark backgrounds when diffing images together instead of the opaque light background

# Current Behavior

The backgrounds still appear light

# Failure Information (for bugs)

A diff with a white opaque background is produced

## Steps to Reproduce

```js
const snapshotA = await Jimp.read(fileA)
snapshotA.background(0x00000000)

const snapshotB = await Jimp.read(fileB)
snapshotB.background(0x00000000)

const diff = Jimp.diff(snapshotA, snapshotB, mismatchThreshold)
```

**Screenshots**
Screen Shot 2020-05-15 at 7 34 11 AM

## Context

- Jimp Version: 0.10.3
- Operating System: Mac OS Catalina 10.15.3
- Node version: v10.18.1

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.