Memory-Bounded Sequential Batch Conversion Without Tab OOM Crashes
Why Concurrency=1 Lazy File Handles Beat Parallel Browser Promise.all Loops
Running Promise.all across thirty 24-megapixel AVIF photographs on the browser main thread eagerly reads every raw ArrayBuffer into JavaScript heap memory simultaneously and spawns dozens of competing WebAssembly linear-memory heaps, crashing mobile browsers and 8 GB desktop tabs immediately. Reliable local batch conversion demands strict sequential admission control and explicit buffer disposal.
Our WorkerPoolController holds up to 100 lazy File references without reading a single input byte from disk until each job reaches the head of the concurrency=1 queue. Mixed-format batches—such as 8-bit transparent UI icons alongside 10-bit photographic stills and lossless .jxl codestreams—are inspected, decoded, canonicalized to straight-alpha PNG, and cataloged inside batch-manifest.json with collision-free -2/-3 filename deduplication.
- Zero prefetched file buffers while waiting in queue; supports instant mid-batch AbortController cancellation and clean Worker respawn.
- Provides free per-file PNG downloads alongside the offline-verified $6 PRO1 Store-mode batch .zip archive.
- Records per-file input bit depth, pixel pipeline format, output dimensions, and byte size in batch-manifest.json.