browser-image-compression icon indicating copy to clipboard operation
browser-image-compression copied to clipboard

BMP file size wrongly increased

Open Foxtrot- opened this issue 2 years ago • 0 comments

Issue

The size of the bmp file is increased up to almost the maxSizeMB value of the options given to the compressor.

Example

Given those options :

const options = {
      maxSizeMB: 1,
      useWebWorker: true,
      maxIteration: 10000,
    };

and a file of 333Ko, we are getting a file of 995Ko as the output of the compressing function.

Foxtrot- avatar May 22 '23 08:05 Foxtrot-