Skip to content

febog/ogp-image-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Open Graph Image generator

Publish package NPM Version NPM License

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.

Installation

npm install

Usage

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

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]

Output

The generated PNG image will be located under images/.

Sample image

The script will generate an image as follows:

Example of a generated open graph image showing the site name, blog post title and date in white letters on a blue background. The text says febog; Hello world!; March 16th, 2026.

About

Open Graph Protocol image generator for my personal blog.

Topics

Resources

License

Stars

Watchers

Forks

Contributors