feat: social image generator with GD-based OG images (#157) #199

Merged
jmiller merged 2 commits from feature/157-social-image-generator into dev 2026-06-28 16:45:47 +00:00
Owner

Summary\n\n- Add SocialImageHelper with PHP GD-based image compositing for OG/share images\n- Platform-specific sizes: Facebook (1200x630), Twitter (1200x675), Instagram (1080x1080), Stories (1080x1920)\n- Configurable overlay color/opacity, text color/position, gradient fallback colors, logo\n- ImageController AJAX endpoint for on-demand generation\n- New social_image fieldset in component config\n\nCloses #157\n\n## Test plan\n\n- [ ] Enable social image in component options\n- [ ] Generate image for article with featured image\n- [ ] Generate image for article without featured image (gradient fallback)\n- [ ] Verify all 4 platform sizes produce correct dimensions\n- [ ] Check overlay and text rendering with different settings

## Summary\n\n- Add SocialImageHelper with PHP GD-based image compositing for OG/share images\n- Platform-specific sizes: Facebook (1200x630), Twitter (1200x675), Instagram (1080x1080), Stories (1080x1920)\n- Configurable overlay color/opacity, text color/position, gradient fallback colors, logo\n- ImageController AJAX endpoint for on-demand generation\n- New social_image fieldset in component config\n\nCloses #157\n\n## Test plan\n\n- [ ] Enable social image in component options\n- [ ] Generate image for article with featured image\n- [ ] Generate image for article without featured image (gradient fallback)\n- [ ] Verify all 4 platform sizes produce correct dimensions\n- [ ] Check overlay and text rendering with different settings
jmiller added 2 commits 2026-06-28 16:45:35 +00:00
feat: add social image generator with PHP GD for OG images (#157)
Universal: Auto Version Bump / Version Bump (push) Successful in 8s
d951d86b3a
- SocialImageHelper: generates 1200x630 OG images with title overlay
- SocialImageController: AJAX endpoint to generate from article data
- Config fields: bg color, text color, overlay style, site name override
- Supports background image scaling, dark/light overlay, TTF fonts

Closes #157
Authored-by: Moko Consulting
chore(version): auto-bump patch 01.08.52-dev [skip ci]
Branch Cleanup / Delete merged branch (pull_request) Successful in 1s
RC Revert / Rename rc/ back to dev/ (pull_request) Has been skipped
a169ea4967
jmiller merged commit e27b958712 into dev 2026-06-28 16:45:47 +00:00
jmiller deleted branch feature/157-social-image-generator 2026-06-28 16:45:48 +00:00
Sign in to join this conversation.
No Reviewers
No labels
Priority -
Type -
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: MokoConsulting/MokoSuiteCross#199