fengyuanchen / compressorjs

JavaScript image compressor.
https://fengyuanchen.github.io/compressorjs/
MIT License
5.23k stars 439 forks source link

Image is not compressed #161

Closed rameezraja2755 closed 2 years ago

rameezraja2755 commented 2 years ago

Describe the bug i am trying to compress image with following code but size of compressed image is same as the original image

new Compressor(fileUploaded, { quality: 0.6, success: (compressedResult) => { console.log("compressed image size", compressedResult.size / 1000000); console.log("real image size", fileUploaded.size / 1000000); }, });

Desktop (please complete the following information):

fengyuanchen commented 2 years ago

Checkout the following 3 options first: strict, convertTypes, and convertSize.