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

No way to only decrease quality of image

Open preyash95 opened this issue 2 years ago • 5 comments

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?

preyash95 avatar Jul 09 '22 11:07 preyash95

this is my constraint object const compress = { useWebWorker: true, alwaysKeepResolution: true, };

preyash95 avatar Jul 09 '22 11:07 preyash95

I would also be interested in this feature!

L-U-C-K-Y avatar Mar 24 '23 18:03 L-U-C-K-Y

I would also be interested in this feature!

Is {alwaysKeepResolution: true} what you want?

Donaldcwl avatar Mar 26 '23 09:03 Donaldcwl

@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

L-U-C-K-Y avatar Mar 27 '23 06:03 L-U-C-K-Y

I was searching for this option also.

metuuu avatar Feb 06 '24 08:02 metuuu