@dusrel/image API
    Preparing search index...

    Function processBatch

    • Processes a batch of images through processImage.

      Parameters

      Returns Promise<BatchItemResult[]>

      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}`),
      });