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

Webp performance is slow and wrong quality issues - Workarounds #213

Open
rishabh876 opened this issue Nov 22, 2023 · 0 comments
Open

Webp performance is slow and wrong quality issues - Workarounds #213

rishabh876 opened this issue Nov 22, 2023 · 0 comments

Comments

@rishabh876
Copy link

rishabh876 commented Nov 22, 2023

After using this library, I have realised it has few issues

  • 1st is that its quite slow on high res images may be due to the fact that webp compression is not hardware accelerated.
  • 2nd issue is while using resolution constraints, it ignores quality you select. Instead it defaults to 100.

Work around - Both issues can be resolved by doing the conversion in 2 phases and its much faster

  • 1st issue can be resolved by doing resolution reduction in jpeg first (Its hardware accelerated). And using the output file for webp conversion. Its like 10 times faster in some cases.
  • 2nd issue is also resolved since quality reduction step will be done in 2nd phase while converting to webp.

Hope it helps

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

No branches or pull requests

1 participant