Add WebP encoding support

Uses github.com/gen2brain/webp - a CGO-free library that uses WASM via
wazero runtime for encoding. WebP decoding was already supported.

- Add gen2brain/webp dependency for encoding
- Implement WebP encoding in processor.go
- Add FormatWebP to SupportedOutputFormats
- Re-enable WebP option in generator form dropdown
- Mark WebP encoding as complete in TODO.md
This commit is contained in:
2026-01-08 11:55:45 -08:00
parent 0c9eb35bd2
commit 70d55977c0
5 changed files with 21 additions and 2 deletions

View File

@@ -5,7 +5,7 @@ Remaining tasks sorted by priority for a working 1.0 release.
## P0: Critical for 1.0
### Image Processing
- [ ] Add WebP encoding support (currently returns error)
- [x] Add WebP encoding support (currently returns error)
- [ ] Add AVIF encoding support (currently returns error)
### Manual Testing (verify auth/encrypted URLs work)