jimp-dev/jimp

Dark Diff

Open

#887 geöffnet am 15. Mai 2020

Auf GitHub ansehen
 (0 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)JavaScript (785 Forks)batch import
enhancementhelp wanted

Repository-Metriken

Stars
 (13.218 Stars)
PR-Merge-Metriken
 (Keine gemergten PRs in 30 T)

Beschreibung

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

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

Context

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

Contributor Guide