Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No way to only decrease quality of image #154

Open
preyash95 opened this issue Jul 9, 2022 · 5 comments
Open

No way to only decrease quality of image #154

preyash95 opened this issue Jul 9, 2022 · 5 comments

Comments

@preyash95
Copy link

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
Copy link
Author

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

@L-U-C-K-Y
Copy link

I would also be interested in this feature!

@Donaldcwl
Copy link
Owner

I would also be interested in this feature!

Is {alwaysKeepResolution: true} what you want?

@L-U-C-K-Y
Copy link

@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

@metuuu
Copy link

metuuu commented Feb 6, 2024

I was searching for this option also.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants