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.
After using this library, I have realised it has few issues
Work around - Both issues can be resolved by doing the conversion in 2 phases and its much faster
Hope it helps