Skip to content

Add basic unanimated webp encoding and decoding support#112

Merged
anthonynsimon merged 3 commits into
anthonynsimon:masterfrom
mibar-me:nativewebp
Jun 30, 2026
Merged

Add basic unanimated webp encoding and decoding support#112
anthonynsimon merged 3 commits into
anthonynsimon:masterfrom
mibar-me:nativewebp

Conversation

@mibar-me

Copy link
Copy Markdown
Contributor

This PR adds basic encoding and decoding support of unanimated webp image files.

WebP support was requested in #95 and I needed basic WebP support as well for a project of mine. I managed to introduce it quite easily thats why I thought about contributing it back to bild.

My implementation uses HugoSmits86/nativewebp library which adds a single dependency and depends on golang.org/x/image/webp.

I'd appreciate any kind of feedback on this since this is my first PR ever.

@anthonynsimon

anthonynsimon commented Jun 30, 2026

Copy link
Copy Markdown
Owner

Hey thanks for this! I checked it out locally and it's working well.

When you have a chance:

  • See cmd/helpers.go, would be great to make WebP usable from the CLI too (resolveEncoder)
  • A quick fmt pass

@mibar-me

Copy link
Copy Markdown
Contributor Author

Thanks for the review!

I hope, I covered both of your points with the latest commit on my branch. If there is still something I've missed I'm happy to push more commits.

@anthonynsimon
anthonynsimon merged commit 54065f5 into anthonynsimon:master Jun 30, 2026
12 checks passed
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