Project Story – Dynamic OG Image Generator

Project Idea:
The idea of this project was to build a dynamic solution for generating social media preview images instead of using static images. When links are shared on platforms like LinkedIn, Facebook, Twitter, or WhatsApp, the preview image is generated dynamically based on the content using Java Spring Boot.

Extra Efforts Taken:
Additional effort was taken to deploy the application on the Render cloud for live testing and demonstration. Cross-platform testing was performed to ensure consistent previews on mobile and desktop. Special attention was given to handling text alignment and image cropping issues across social media platforms.

Additional / Unique Features Implemented:

Dynamic OG image generation at runtime using Java AWT
Automatic text wrapping and font size adjustment
Mobile-safe center-aligned layout to prevent cropping
Separate endpoints for metadata (/share) and image generation (/og)
Cloud deployment with Docker for real-time access.

Github Link:
https://github.com/Suriya-dev28/og-image-generator
Live Demo:
https://og-image-generator-7kgr.onrender.com/share

image