unjs / ipx

🖼️ High performance, secure and easy-to-use image optimizer.
MIT License
2.02k stars 66 forks source link

Support image optimization #40

Open ascorbic opened 3 years ago

ascorbic commented 3 years ago

sharp supports several features that can optimize the filesize of output images. These can give significant improvements, but can be very expensive operations so should not be the default. The options are palette for png, and a number of options for jpeg that are enabled with the mozjpeg option.

pi0 commented 3 years ago

Hi @ascorbic. Thanks for the suggestion. Sure we currently use quality and progressive. Do you mind making a PR for further optimizations?