webp
webp copied to clipboard
WebP decoder and encoder for Go (Zero Dependencies).
Hi! My params for Linux release. set GOARCH=amd64 set GOOS=linux go build -ldflags "-s -w" Output: C:\Users\admin\go\pkg\mod\github.com\chai2010\[email protected]\webp.go:22:9: undefined: webpGetInfo C:\Users\admin\go\pkg\mod\github.com\chai2010\[email protected]\webp.go:26:20: undefined: webpDecodeGray C:\Users\admin\go\pkg\mod\github.com\chai2010\[email protected]\webp.go:39:20: undefined: webpDecodeRGB C:\Users\admin\go\pkg\mod\github.com\chai2010\[email protected]\webp.go:52:20: undefined: webpDecodeRGBA C:\Users\admin\go\pkg\mod\github.com\chai2010\[email protected]\webp.go:68:14: undefined:...
macos 12.4 go 1.18.1 提示如下 github.com/sizeofint/webp-animation github.com/sizeofint/webp-animation In file included from ../../repository/go/pkg/mod/github.com/sizeofint/[email protected]/gifdec.go:6: ./webp.hpp:4:10: fatal error: 'webp/encode.h' file not found #include ^~~~~~~~~~~~~~~ 使用make 或者手动命令build 提示均如上所示
Updated library
go\pkg\mod\github.com\chai2010\[email protected]\webp.go:17:9: undefined: webpGetInfo go\pkg\mod\github.com\chai2010\[email protected]\webp.go:21:20: undefined: webpDecodeGray go\pkg\mod\github.com\chai2010\[email protected]\webp.go:34:20: undefined: webpDecodeRGB go\pkg\mod\github.com\chai2010\[email protected]\webp.go:47:20: undefined: webpDecodeRGBA go\pkg\mod\github.com\chai2010\[email protected]\webp.go:63:14: undefined: webpDecodeGrayToSize go\pkg\mod\github.com\chai2010\[email protected]\webp.go:77:14: undefined: webpDecodeRGBToSize go\pkg\mod\github.com\chai2010\[email protected]\webp.go:91:14: undefined: webpDecodeRGBAToSize go\pkg\mod\github.com\chai2010\[email protected]\webp.go:104:7: undefined: toGrayImage go\pkg\mod\github.com\chai2010\[email protected]\webp.go:105:14: undefined: webpEncodeGray go\pkg\mod\github.com\chai2010\[email protected]\webp.go:114:14: undefined: webpEncodeRGB...
The webp libraries return non-premultiplied alpha values. This library wraps those values in RGBA structs which represent premultiplied values. Everywhere `RGBA{}` is created with data returned by the webp decoder,...
https://mathiasbynens.be/demo/animated-webp this image can not be decoded
please consider adding an API or put into GetInfo function. reference: https://stackoverflow.com/questions/45190469/how-to-identify-whether-webp-image-is-static-or-animated
I have a service where I am able to convert jpeg images into webp and render them. The jpeg image that I get has exif information which I extract using...
Is there planned support for animated webp images, such as https://mathiasbynens.be/demo/animated-webp-supported.webp ?
go mod vendor 后,编译出错,提示无法找到 webp.h 文件 ```shell # cat /etc/redhat-release CentOS Linux release 7.9.2009 (Core) # go version go version go1.15.5 linux/amd64 # go build # github.com/chai2010/webp vendor/github.com/chai2010/webp/capi.go:24:18: fatal error:...