Web Worker image compression
compresso.js/pool exposes createPool() and compressMany() — parallel jobs off the main thread with crash/timeout recovery. Falls back silently where Workers are blocked.
Como funciona
- import { createPool } from "compresso.js/pool"
- const pool = createPool()
- await pool.compressMany(files, options)
Perguntas comuns
- CSP requirements?
- Needs worker-src self; HEIC needs wasm-unsafe-eval in script-src.