gowebp

command
v0.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 8, 2026 License: MIT Imports: 14 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL