Skip to content

leereilly/ogre

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

57 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ogre (Open Graph Ruby Encoder) is a proof of concept app for generating custom og:image metadata images dynamically on a per user basis e.g.

Installation

This is a Sinatra application, so you'll need to know a bit of Ruby-Fu to get it working. There are a couple of dependencies:

  • ImageMagick® and GraphicsMagick image processing libraries must be installed, and
  • You must have a url2png account (please set the api_key and private_key environment variables).
git clone https://github.com/leereilly/ogre.git
cd ogre
bundle install
ruby ogre.rb

Open Graph Ruby Enforcer

Usage

Hitting http://localhost:4567/leereilly will generate the image to be used for the og:image metadata:

<meta property="og:image" content="http://localhost:4567/leereilly" />
<meta property="og:image:width" content="1200" />
<meta property="og:image:height" content="620" />

LICENSE

MIT

Bugs / Known Issues / Limitations

  • This is a proof-of-concept.
  • It won't scale.
  • Do not use this in production.
  • It is 100% bug free.

Bugs

About

Generate open graph images dynamically with user-specific content 🌐

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published