sprockets icon indicating copy to clipboard operation
sprockets copied to clipboard

Feature suggestion: Generate webp images too by default

Open Antronin opened this issue 2 years ago • 0 comments

Expected behavior

WebP is with us for more than 10 years. It has advantages over JPEG and/or PNG images and finally, nowadays most browsers are supporting it. I would suggest adding it as an opt-in feature to generate WebP image versions in the pipeline for PNGs and/or JPEGs. LibVips, MiniMagick, and ImageMagick already support the WebP format, so adding an optional post-processor is completely possible. There are already separate gems for this but I can find no gem which

  • uses LibVips for conversion
  • still maintained.

https://github.com/0xjmp/rails-webp - last commit in 2021, uses ImageMagick https://github.com/kavu/sprockets-webp - last commit in 2018, uses libwebp through webp-ffi

Please let me know what do you think about the idea. Thank you.

Antronin avatar Jul 19 '23 13:07 Antronin