Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds compatibility with the std image lib #17

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jphastings
Copy link

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.

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

Repicates the approach used in [golang.org/x/image/webp](https://cs.opensource.google/go/x/image/+/master:webp/decode.go).
@lEx0 lEx0 self-assigned this Sep 26, 2022
@lEx0
Copy link
Member

lEx0 commented Oct 21, 2022

pr is ready?

@jphastings
Copy link
Author

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

@jphastings jphastings marked this pull request as ready for review October 27, 2022 19:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants