6 Commits

Author SHA1 Message Date
xfy
b7220c28ef Fix WebpError trait impls missing #[cfg(feature = "server")] 2026-06-09 18:30:10 +08:00
xfy
c08d35856e test: add WebP config parsing and clamping tests 2026-06-09 16:04:26 +08:00
xfy
05cf2f79ea refactor: extract WebP encode helper to reduce duplication 2026-06-09 15:59:02 +08:00
xfy
035d11e39b fix: log warning when WebP env vars are clamped 2026-06-09 15:53:39 +08:00
xfy
db3379364f fix: limit WebP decode buffer size to prevent malicious allocations 2026-06-09 15:48:34 +08:00
xfy
2e2be7b16d feat: add WebP encoding support with zenwebp
- Replace image crate's WebP with zenwebp for better quality/speed
- Add webp.rs module with configurable quality and method
- Update .env.example with WEBP_QUALITY and WEBP_METHOD
- Add WebP decode support in image serving pipeline
- Add detailed timing logs for WebP conversion
2026-06-09 15:30:06 +08:00