We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hello there and thank you for this wonderful package.
Current Behavior: Within image-compression.js, the quality is set via: let quality = 1
image-compression.js
let quality = 1
It is further affected in the case of a jpeg:
if (file.type === 'image/jpeg') { quality *= 0.95 }
Desired Behavior Ability to input a quality field in the options passed to browser-image-compressor, like so:
let options = { maxSizeMB: 2, maxWidthOrHeight: 2048, quality: 0.5 }
reasoning I believe that there are certain use cases where it would be extremely useful to have more control over this.
Thank you again
The text was updated successfully, but these errors were encountered:
Added initialQuality options in v1.0.13 e.g.:
initialQuality
const options = { maxSizeMB: 2, maxWidthOrHeight: 2048, initialQuality: 0.5 }
Thank you
Sorry, something went wrong.
Fantastic, thank you for this addition.
No branches or pull requests
Hello there and thank you for this wonderful package.
Current Behavior:
Within
image-compression.js
, the quality is set via:let quality = 1
It is further affected in the case of a jpeg:
Desired Behavior
Ability to input a quality field in the options passed to browser-image-compressor, like so:
reasoning
I believe that there are certain use cases where it would be extremely useful to have more control over this.
Thank you again
The text was updated successfully, but these errors were encountered: