WebP libraries for Ruby
- ruby-vips binds libvips, which uses libwebp. It reads and writes lossy, lossless and animated WebP, is fast and uses little memory. Rails’ Active Storage and the
image_processinggem use it for WebP variants.
MiniMagick also converts to WebP by running ImageMagick’s command-line tools.
- ruby-vips ruby-vips is the Ruby binding for libvips. How to convert images to WebP in Ruby, set quality and effort, write lossless WebP, make thumbnails.