Skip to content

Commit 208e5e3

Browse files
TMHSDigitalclaude
andauthored
fix(showcase): bring 19 previews to the 1200x675 spec and enforce hero/preview sizes (#217)
CLAUDE.md fixes preview webps at 1200x675 and heroes at 1280x720. All 51 example previews conformed, but 19 of 28 showcase previews shipped at the hero size, and nothing checked either. - Downscale the 19 (same 16:9 aspect, Lanczos, webp q90); no re-render. - tests/check_gallery_images.py asserts both sizes for every gallery.json entry. Stdlib only: it parses the WebP RIFF header (VP8, VP8L, VP8X), so it runs on the bare Validate runner. Its parser agrees with Pillow on all 158 images. Closes #214 Signed-off-by: TMHSDigital <154358121+TMHSDigital@users.noreply.github.com> Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
1 parent 29edf01 commit 208e5e3

21 files changed

Lines changed: 84 additions & 0 deletions

File tree

‎.github/workflows/validate.yml‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,9 @@ jobs:
156156
fi
157157
echo "docs/gallery/ matches scripts/build_gallery.py output."
158158
159+
- name: Check gallery hero and preview sizes
160+
run: python3 tests/check_gallery_images.py
161+
159162
- name: Validate template Python syntax
160163
run: |
161164
echo "Checking template Python syntax..."

‎showcase/anvil/preview.webp‎

-11.7 KB
Loading

‎showcase/campfire/preview.webp‎

-12.1 KB
Loading

‎showcase/cart/preview.webp‎

-3.59 KB
Loading
-2.06 KB
Loading

‎showcase/crate-stack/preview.webp‎

-3.58 KB
Loading

‎showcase/fence-kit/preview.webp‎

2.77 KB
Loading

‎showcase/hand-pump/preview.webp‎

1.43 KB
Loading
-7.48 KB
Loading

‎showcase/market-stall/preview.webp‎

-5.29 KB
Loading

0 commit comments

Comments
 (0)