Open jphastings opened 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.
import _ "github.com/kolesa-team/go-webp"
image.Decode
If this seems interesting/useful, I'll add tests and adapt where needed 😊
Replicates the approach used in golang.org/x/image/webp.
pr is ready?
If you're comfortable with the quality of the code!
Adding
import _ "github.com/kolesa-team/go-webp"
to a file will allowimage.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.