Open Graph Protocol image generator for my personal blog.
This script generates an open graph PNG image file for my personal blog for the given title and date.
npm install
Set the required options title, date and filename. You can change the site name with the optional argument site.
Run:
ogp-image-gen -t 'Hello world!' -d 'March 12th, 2026' -f 'my-image'
Options:
-t, --title Blog post title [string] [required]
-d, --date Date of the blog post i.e. March 2nd, 2026 [string] [required]
-f, --filename File name for the PNG i.e. my-image [string] [required]
-s, --site Site name [string] [default: "febog"]
--version Show version number [boolean]
--help Show help [boolean]
The generated PNG image will be located under images/.
The script will generate an image as follows:
