browser-image-compression
browser-image-compression copied to clipboard
No way to only decrease quality of image
I want to decrease the quality of the image by 50% while maintaining dimensions. I tried everything but not working for me, is there any way?
this is my constraint object
const compress = { useWebWorker: true, alwaysKeepResolution: true, };
I would also be interested in this feature!
I would also be interested in this feature!
Is {alwaysKeepResolution: true}
what you want?
@Donaldcwl thanks for your reply, I think it's partially that what I'm looking for.
I would like to set a quality (for example between 1-10) that defines how hard the compression is. I saw 'initialQuality' but I think it's not that.
See for example here, where the quality can be set: https://github.com/fengyuanchen/compressorjs
Thank you
I was searching for this option also.