Skip to content

Create a twitter card-sized image for your blog posts 🖼

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE_APACHE
MIT
LICENSE_MIT
Notifications You must be signed in to change notification settings

alessbell/wasm-twitter-card

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

wasm-twitter-card

A humble pre-release library that does one thing only: provides a generate_text function for creating a twitter card-size image (630 x 1200 px) returned as a Uint8Array of pixels.

generate_text accepts two arguments: a title and author. It creates an image with white monospace text with an empty background, e.g.:

gatsby-remark-twitter-cards in action

It was made for the use case described in gatsby-remark-twitter-cards.

Contributing

Contributions are warmly welcome! Upon cloning this repo, you can run the command wasm-pack build --target nodejs to build from src.

Roadmap

  • Custom font
  • Prints title and subtitle
  • Choice of font family (monospace, sans serif)
  • Custom font color
  • Custom title font size
  • Custom subtitle font size

About

Create a twitter card-sized image for your blog posts 🖼

Topics

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE_APACHE
MIT
LICENSE_MIT

Stars

Watchers

Forks

Languages