image-segmentation · practical Multi-Photo Batch FIFO · Transparent PNG WASM q8 · 0.22 MB License: Apache-2.0

Practical: Multi-Photo Headshot & Avatar Batch Cutter

Drop or select multiple portraits to segment them sequentially in a cancellable FIFO Web Worker queue (~20 ms/photo on CPU WASM). Download transparent PNG cutouts or blurred studio headshots per photo, and export an OWASP formula-safe CSV + JSON batch manifest.

1 · Batch queue & cutout settings

Initialising model loader…

Queue (0 photos)
Original Cutout Name State Foreground % Latency Download PNG Remove
Queue is empty. Load the starter portrait batch or upload photos above.

2 · Batch manifest & formula-safe export

Cutouts completed0 / 0
Mean foreground %–
Mean latency–
NaN / invalid0

See inside the code

Show the code — selfie-core.mjs: computeAlphaEdgeFeather() (smoothstep cutout edge matte)
Show the code — selfie-core.mjs: escapeCsvCell() (OWASP CSV injection guard)
Show the code — selfie-core.mjs: formatExportCsv() (RFC 4180 CRLF exporter with 0-row header)

References