mirror of
https://github.com/coalaura/ffwebp.git
synced 2025-09-07 21:45:31 +00:00
3114d7f8c37442b795f4075c87255e241f75b332
FFWebP
FFWebP is a command line utility for converting images between multiple formats. It automatically detects the input format and encodes the output using
Features
- Pure Go implementation with no external runtime dependencies
- Supports AVIF, BMP, GIF, ICO, JPEG, JPEGXL, PNG, PNM (PBM/PGM/PPM/PAM), TIFF and WebP
- Lossy or lossless output with configurable quality
- Output codec selected from the output file extension when
--codec
is omitted - Full set of format-specific flags for every supported format (see
ffwebp --help
) - Additional formats may be added in the future
Building
Compile with all codecs enabled using the full
build tag:
go build -tags full -o ffwebp ./cmd/ffwebp
You can enable a subset of codecs by selecting the appropriate build tags (for example -tags "jpeg,png"
).
Usage
ffwebp -i input.jpg -o output.webp
Run ffwebp --help
to see the full list of flags.
License
See the LICENSE file.
Languages
C
86.5%
Go
13.3%
Shell
0.2%