go-websizer
Converts an image file into various WebP images to use with img srcset
.
Install
$ go get github.com/pipe01/go-websizer
Usage
Usage of go-websizer:
-lossless
whether to encode webp in lossless mode
-parallel int
maximum number of images to process in parallel (default 8)
-quality float
quality to use when encoding into webp (default 80)
-quiet
if true, only errors will be printed
-size value
comma-separated list of size-format (default 480-webp,720-webp,1080-webp)
Examples
go-websizer image1.jpg image2.jpg
go-websizer -size 480-webp,720-png image*.jpg