Closed rameezraja2755 closed 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):
Checkout the following 3 options first: strict, convertTypes, and convertSize.
strict
convertTypes
convertSize
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):