compresso
打开应用

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.

使用方法

  1. import { createPool } from "compresso.js/pool"
  2. const pool = createPool()
  3. await pool.compressMany(files, options)

常见问题

CSP requirements?
Needs worker-src self; HEIC needs wasm-unsafe-eval in script-src.

开发者

在上传流程中嵌入压缩:

npm install compresso.js
npm · Docs

相关页面