Processes a batch of images through processImage.
const results = await processBatch(files, { format: 'image/webp', concurrency: 3, perItem: (file) => ({ maxSizeBytes: file.size > 1_000_000 ? 300_000 : undefined }), onBatchProgress: ({ completed, total }) => console.log(`${completed}/${total}`),}); Copy
const results = await processBatch(files, { format: 'image/webp', concurrency: 3, perItem: (file) => ({ maxSizeBytes: file.size > 1_000_000 ? 300_000 : undefined }), onBatchProgress: ({ completed, total }) => console.log(`${completed}/${total}`),});
Processes a batch of images through processImage.