The OG Image Generator allows you to create custom Open Graph images for your website. You can specify various parameters to customize the image according to your needs.
The url for all images will be the same:
https://osig.app/g/
Parameters will vary depending on the style. All of them are optional, but if you don't pass anything it will look like sh*t.
Below is a list of all parameters we currently support:
The url for all images will be the same:
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:image" content="{ generated_image_url }"/>
This is useful for general pages like Articles, Tutorial, News pages. Pro tip, you can generate the background image using AI. Those work super well.
Here is what gets generated for my site's articles:
This is the that I use to generate the image:
https://osig.app/g?
site=x
&style=base
&font=helvetica
&title=10 Years of Great Books
&subtitle=I'm starting a 10 Year Reading Plan proposed in the 1st Volume (The Great Conversation) of the "Great Books of the Western World" series.
&eyebrow=Article
&image_url=https://www.rasulkireev.com/_astro/a_smiling_boy_from_Pixars_Coco.DrP3G0Ol.png
Logo style is super useful if you are trying to highlight a company or a project, advertize job postings or anything like. Super minimalistic.
Here is how I use it for one of my job boards:
This is the that I use to generate the image:
https://osig.app/g?
site=x
&style=logo
&font=markerfelt
&title=Narrative
&subtitle=Founding Senior Software Engineer
&image_url=http://res.cloudinary.com/built-with-django/image/upload/v1728024021/user-profile-image-prod/hhxfplsthiaytuttoamc.jpg
Once you insert this link on your site, make sure to test it before sharing links online. I like to use this Twitter Card Validator
As people use this, I will start adding more specific instructions on how to add these to your specific site that might use different technologies:
I will be adding more instruction on how you can generate those images programmatically via an API soon.