Documentation
¶
Overview ¶
Command gowebp converts images to WebP from the shell.
It reads PNG, JPEG, GIF or WebP and writes WebP, defaulting to lossless VP8L. Animated GIFs become animated WebP. Multiple inputs are converted in one run, and "-" streams via stdin/stdout.
go install github.com/linzeyan/webp-go/cmd/gowebp@latest gowebp photo.png # -> photo.webp (lossless) gowebp -lossy -q 80 photo.jpg # -> photo.webp (lossy) gowebp anim.gif # -> anim.webp (animated) cat a.png | gowebp - > a.webp # stdin -> stdout
Click to show internal directories.
Click to hide internal directories.