Stray Stitch Cleaner4-neighbor islands < 3 cells · Nearest mode · 1:1 grid (chroma-confetti.png)

Confetti Cross-Stitch Cleaner

Eliminate isolated one- and two-stitch confetti islands via simultaneous multi-pass connected-component labeling and lowest-ΔE00 neighbor replacement.

Turn any photo into a printable cross-stitch pattern

PNG, JPG, or WebP · up to 20 MB · your artwork stays privately on your device

Or explore a ready-to-stitch example
Customize Fabric Count, Thread Budget & Stash Before Uploading14ct · All threads
Fabric & Pattern Size14ct
Fabric Count
Thread Colors & CleanupFull Palette
All
Clean Stray Stitches
My Thread StashOptional filter
Verified Sample · CC0-1.0Sample file: chroma-confetti.png (256 B)

Verified Sample Result & Instant Demo

Try Sample File in 1 Click

How many isolated single-stitch confetti islands exist on chroma-confetti.png before cleanup and remain afterward under 4-neighbor <3-cell simultaneous removal? All 16 isolated high-chroma cells are eliminated (16 -> 0), modifying exactly 16 of 4,096 cells.

Isolated Cells Before
16cells
Isolated Cells After
0cells
Islands Removed
16islands
Total Changed Cells
16cells
Cryptographic SHA-256 & Engine Provenance
Sample Input File
chroma-confetti.png · 256 bytes · CC0-1.0
Browser Codec Engine
culori CIEDE2000 4.0.2
Input SHA-256 Digest
1a8c5db9962cfc3987ab0600f59abe6086ff6d34f7136eab06fbd873f66caf21
Engine Artifact SHA-256
09dc0be3088b19c120af9e7cad015236268b6b5e2a0f2a8d23ffed7b0d57326c
Reference Verification
CIE Publication 142-2001 D65
Schema & Preset ID
stitch.cleanup.confetti.v1 · confetti-4nbr-under3-3pass · islands-removed-changed-cells

Simultaneous Connected-Component Confetti Elimination Without Directional Drift

Why Isolated Single Stitches Frustrate Real-World Embroidery

JPEG compression noise, camera sensor grain, and specular foliage highlights routinely produce scattered one-stitch islands—"confetti stitches"—that force constant needle re-threading or long diagonal back-side carries that shadow through pale Aida fabric and snarl hoop tension.

Sequential top-left-to-bottom-right majority filters introduce directional bias: early replacements mutate neighbor labels for downstream pixels in the same pass, smearing thin stems downward and rightward unpredictably.

Order-Independent Simultaneous Passes & Lowest-ΔE00 Neighbor Selection

Our cleaner labels every 4-connected (or 8-connected) same-color component across the frozen pass snapshot simultaneously. Any island smaller than your minimum cell threshold (for example under 3 cells) evaluates its mean original source CIE L*a*b* D65 color against every touching stitched neighbor color and adopts the neighbor with lowest CIEDE2000 error.

  • Snapshots prevent cascading directional bias; top-left and bottom-right confetti speckles resolve symmetrically.
  • Ties between equally close touching colors break deterministically by ascending Standard 6-Strand Floss Code.
  • Iteration caps strictly at three passes so intentional three-cell eyes, buttons, and floral buds remain crisp.

Common Questions & Answers

Does confetti cleanup change the overall stitch grid width or height?

No. Connected-component cleanup reassigns only small interior islands while preserving exact grid dimensions cell-for-cell.

When should I choose 4-neighbor versus 8-neighbor connectivity?

Four-neighbor treats diagonal single-cell steps as separate islands for cleaner block regions; eight-neighbor preserves diagonal one-cell staircases.

100% Private In-Browser Processing

Verified local execution

  • Zero Cloud Uploads

    Your files stay on this device and are never sent to any remote server.

  • Instant Local Speed

    Runs directly on your device up to 20 MB with no upload queue.

  • No Account Needed

    Open a file, inspect your preview, and download immediately without signing up.

View Security Architecture
Execution Sandbox
Dedicated Web Worker
Post-Init Network
Locked (0 Egress)
Max File Budget
20 MB
Cross-Origin Isolation
Single-Thread WASM

After local WebAssembly initialization, Worker network APIs (fetch, XMLHttpRequest, WebSocket) are locked to prevent outbound data egress.