feat: add image optimizer module

- Add Optimizer module with lossless WebP conversion
- Generate responsive variants at [400, 800, 1200] widths
- Only create sizes <= source dimensions (no upscaling)
- Support AVIF, WebP, and JPEG output formats
- Add disk cache at priv/static/image_cache/
- Add comprehensive test suite (12 tests)
- Add image fixtures helper for testing

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
2026-01-21 22:16:21 +00:00
parent cefec1aabd
commit 2b5b749a69
4 changed files with 335 additions and 0 deletions

BIN
test/fixtures/sample_1200x800.jpg vendored Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB