CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/npm-pixelmatch

The smallest and fastest pixel-level image comparison library with anti-aliasing detection.

Overall
score

97%

Overview
Eval results
Files

Evaluation results

100%

Color Change Validator

Perceptual color difference detection (YIQ color space)

Criteria
Without context
With context

pixelmatch import

100%

100%

pixelmatch invocation

100%

100%

threshold option

100%

100%

output buffer handling

100%

100%

mismatch count usage

100%

100%

result calculations

100%

100%

100%

Screenshot Validation Tool

Basic pixel-level image comparison

Criteria
Without context
With context

Import pixelmatch

100%

100%

Call pixelmatch function

100%

100%

Pass image buffers

100%

100%

Pass dimensions correctly

100%

100%

Use threshold option

100%

100%

Handle output buffer

100%

100%

Return mismatch count

100%

100%

90%

Screenshot Comparison Validator

Anti-aliasing detection and exclusion

Criteria
Without context
With context

Uses pixelmatch function

100%

100%

Loads PNG images

100%

100%

Comparison with includeAA false

100%

100%

Comparison with includeAA true

100%

100%

Creates output buffer

100%

100%

Configures AA color

0%

0%

Writes diff PNG

100%

100%

100%

Image Comparison Tool

Comprehensive CLI features with exit codes and timing

Criteria
Without context
With context

PNG Loading

100%

100%

Pixelmatch Invocation

100%

100%

Performance Timing

100%

100%

Dimension Validation

100%

100%

Error Percentage

100%

100%

Exit Code 0

100%

100%

Exit Code 64

100%

100%

Exit Code 65

100%

100%

Exit Code 66

100%

100%

Optional Diff Output

100%

100%

100%

4%

Screenshot Comparison Utility

Dual-mode comparison (with and without diff)

Criteria
Without context
With context

Import pixelmatch

100%

100%

Conditional buffer allocation

92%

100%

Call pixelmatch correctly

92%

100%

Capture mismatch count

100%

100%

Return correct structure

100%

100%

Performance optimization awareness

100%

100%

100%

Screenshot Comparison Tool

Visual diff image generation

Criteria
Without context
With context

PNG Reading Setup

100%

100%

pixelmatch Function Call

100%

100%

Output Buffer Allocation

100%

100%

Diff Image Generation

100%

100%

Mismatch Count Usage

100%

100%

Statistics Calculation

100%

100%

100%

Visual Diff Overlay Generator

Transparent diff masking (diffMask)

Criteria
Without context
With context

diffMask option usage

100%

100%

Output buffer allocation

100%

100%

diffColor configuration

100%

100%

Image buffer preparation

100%

100%

Dimension parameters

100%

100%

PNG output generation

100%

100%

Return value handling

100%

100%

100%

35%

Image Comparison Tolerance System

Threshold-based sensitivity control

Criteria
Without context
With context

Imports pixelmatch

100%

100%

Strict mode threshold

100%

100%

Standard mode threshold

60%

100%

Relaxed mode threshold

0%

100%

Correct parameters

100%

100%

83%

8%

Image Buffer Comparison Tool

Performance-optimized memory access

Criteria
Without context
With context

Uint32Array usage

80%

83%

ByteOffset handling

90%

100%

No intermediate allocations

90%

90%

Fast-path optimization

0%

40%

Efficient grayscale

100%

93%

100%

65%

Visual Diff Report Generator

Alpha blending control for diff output

Criteria
Without context
With context

Alpha option usage

0%

100%

Correct alpha values

0%

100%

Diff output buffer

100%

100%

DiffColor configuration

100%

100%

Mismatch count reporting

100%

100%

Install with Tessl CLI

npx tessl i tessl/npm-pixelmatch
Evaluated
Agent
Codex

Table of Contents