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

convertSize to webp as an option #123

Closed
zehawki opened this issue May 7, 2021 · 1 comment
Closed

convertSize to webp as an option #123

zehawki opened this issue May 7, 2021 · 1 comment

Comments

@zehawki
Copy link

zehawki commented May 7, 2021

Is your feature request related to a problem? Please describe.
Current behavior - PNG files over convertSize value will be converted to JPEGs (https://github.com/fengyuanchen/compressorjs#convertsize)

Describe the solution you'd like
Suggested enhancement - Add a feature (and flag) which will convert PNGs to WEBP instead of JPEG.

Additional context
This is to retain PNG transparency while reducing the image size

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

2 participants