Skip to content

Commit d769bf6

Browse files
MaxDatenclaude
andcommitted
feat: add OG image to CI with exact 1200x630 dimensions
- Add OG entry to screenshots.yml for documentation/local use - Generate OG image AFTER retina screenshots to get exact 1200x630 - Overwrites retina 2x version with correct social media dimensions 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent f7bd4d4 commit d769bf6

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

.github/workflows/main.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ jobs:
2727
run: |
2828
sed "s|APP_PATH|$(pwd)|g" screenshots.yml > /tmp/screenshots-resolved.yml
2929
shot-scraper multi /tmp/screenshots-resolved.yml --retina
30+
- name: Generate OG preview image (exact 1200x630)
31+
run: |
32+
shot-scraper shot src/templates/og-card.html -w 1200 -h 630 -o build/img/og-card.png
3033
- name: Upload pages
3134
uses: actions/upload-artifact@v6.0.0
3235
with:

screenshots.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
# Use for layout verification across viewports.
44

55
# OpenGraph Preview Image (1200x630) - Social media sharing
6-
# Note: Uses --no-retina in workflow for exact dimensions
76
- output: build/img/og-card.png
87
url: file://APP_PATH/src/templates/og-card.html
98
width: 1200

0 commit comments

Comments
 (0)