tinyWebpConv is a small Go command-line tool that converts common image formats into .webp.
It also includes a small local browser GUI.
- Easy to ship as a single Windows
.exe - End users do not need to install Go
- Good fit for a simple standalone converter
- PNG
- JPEG
- GIF
- BMP
- TIFF
You need Go installed only to build the binary.
go mod tidy
go build -o tinywebpconv .On Windows:
go build -o tinywebpconv.exe .Convert with default output name:
./tinywebpconv -in photo.pngConvert with explicit output and quality:
./tinywebpconv -in photo.jpg -out dist/photo.webp -quality 75Lossless conversion:
./tinywebpconv -in logo.png -out logo.webp -losslessStart the small GUI:
./tinywebpconv -guiThen open:
http://127.0.0.1:8080
Custom GUI address:
./tinywebpconv -gui -addr 127.0.0.1:9090- If
-outis omitted, the tool writes next to the input file using the same base name and a.webpextension. - GUI mode keeps everything local on your machine. Upload, conversion, and download are handled by the local Go app.
- This project uses
github.com/chai2010/webpfor WebP encoding.