kolesa-team / go-webp

Simple and fast webp library for golang
MIT License
225 stars 36 forks source link

Adds compatibility with the std image lib #17

Open jphastings opened 2 years ago

jphastings commented 2 years ago

Adding import _ "github.com/kolesa-team/go-webp" to a file will allow image.Decode to automatically detect and decode WebP files using this library.

If this seems interesting/useful, I'll add tests and adapt where needed 😊

Replicates the approach used in golang.org/x/image/webp.

lEx0 commented 2 years ago

pr is ready?

jphastings commented 2 years ago

If you're comfortable with the quality of the code!