module

MJ::Webp

WebP transcoding via ImageMagick. This is a BUILD-TIME tool only: mj webp pre-generates a .webp next to each library PNG, and the server just serves that file — so the running mj has no image-processing dependency. WebP keeps the alpha channel, and because the keyer already bled the subject colour under transparency (see prop alpha_bleed), lossy webp can't resurrect the key hue.

Class methods

available?
Source
encode(src : String, dst : String, quality : Int32 = 82) : Bool

Encode src (PNG, may have alpha) → dst (.webp) at the given quality. Returns true on success.

Source
tool
Source