Coder Social home page Coder Social logo

wanghaisheng / wasm-twitter-card Goto Github PK

View Code? Open in Web Editor NEW

This project forked from alessbell/wasm-twitter-card

1.0 1.0 0.0 123 KB

Create a twitter card-sized image for your blog posts ๐Ÿ–ผ

Home Page: https://www.npmjs.com/package/wasm-twitter-card

License: Apache License 2.0

Rust 100.00%

wasm-twitter-card's Introduction

1.ๆ”น้€ ๆˆ่ง†้ข‘ๅฐ้ข 2.ๆ”น้€ ๆˆๆœ‹ๅ‹ๅœˆ็ง€ๅ›พ

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

wasm-twitter-card's People

Contributors

alessbell avatar wanghaisheng avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.