Skip to content

Commit 26352e7

Browse files
TMHSDigitalclaude
andcommitted
fix(showcase): bring 19 previews to the 1200x675 spec and enforce hero/preview sizes
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 Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Signed-off-by: TMHSDigital <[email protected]>
1 parent 6da22c9 commit 26352e7

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
@@ -142,6 +142,9 @@ jobs:
142142
- name: Check falsifiers declare the budget they target
143143
run: python3 tests/check_falsifier_targets.py
144144

145+
- name: Check gallery hero and preview sizes
146+
run: python3 tests/check_gallery_images.py
147+
145148
- name: Validate template Python syntax
146149
run: |
147150
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)