WebP decoder and encoder for Go (Zero Dependencies). 该项目不再维护, 大家自己fork吧
██╗ ██╗███████╗██████╗ ██████╗
██║ ██║██╔════╝██╔══██╗██╔══██╗
██║ █╗ ██║█████╗ ██████╔╝██████╔╝
██║███╗██║██╔══╝ ██╔══██╗██╔═══╝
╚███╔███╔╝███████╗██████╔╝██║
╚══╝╚══╝ ╚══════╝╚═════╝ ╚═╝Install GCC or MinGW (download here) at first,
and then run these commands:
go get github.com/chai2010/webpgo run hello.goThis is a simple example:
…Decode and Encode as RGB format:
m, err := webp.DecodeRGB(data)
if err != nil {
log.Fatal(err)
}
data, err := webp.EncodeRGB(m)
if err != nil {
log.Fatal(err)
}If you like project, please give it a star. Thanks!
No open issues yet, or sync has not completed.