feat: social image generator with GD text overlay #213
Reference in New Issue
Block a user
Delete Branch "feature/157-social-image-generator"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Social image generator with GD-based OG image compositing — platform-specific canvas sizes, gradient backgrounds, TTF text rendering, and configurable overlay. AJAX endpoint + content plugin integration.
Replace basic single-size OG image generation with full-featured multi-platform social image compositing: - Platform-specific canvas sizes: Facebook 1200x630, Twitter 1200x675, Instagram 1080x1080, Stories 1080x1920 - Vertical linear gradient fallback when no source image available - Semi-transparent overlay with configurable color and opacity (0-100%) - Logo placement in top-right corner, auto-scaled to 15% of canvas width - TTF text rendering with word wrap and text shadow for readability - GD bitmap font fallback when no TTF fonts are available - Configurable text position: top, center, or bottom - Output to images/mokosuitecross/{articleId}_{platform}.jpg - Cache clearing per article via clearCache() method - ImageController AJAX endpoint with platform parameter validation - Full config fieldset: enabled toggle, overlay color/opacity, text color/position, gradient start/end, logo upload Authored-by: Moko Consultingfbd4765dc1to437189830f