GithubHelp home page GithubHelp logo

cristeigabriel / speechbubbler Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 0.0 771 KB

Add speech bubbles to images.

License: ISC License

JavaScript 100.00%
javascript meme meme-generator memes speech-bubble speech-bubbles

speechbubbler's Introduction

Speechbubbler

In meme culture, speech bubbling "is the term given to a wide range of exploitable reaction images that have half of a speech bubble added to them [...]".

This project aims to automate speech bubbling into a simple command, whilst also supporting conversion between formats.

How to use

You may run the program through the command npm run start or node index.js and then provide 2 or 3 arguments, respectively:

  • Input file (extension png/jpg/bmp)
  • Output file (extension png/jpg/bmp)
  • Bubble [height] percentage (default: 0.3)

Examples

Inputting static/in.jpg, with default bubbling percentage, we can get, respectively: static/out.png, static/out.jpg, static/out.bmp.

License

ISC license, as it appears to be the most common in npm packages, but if this prevents anyone from modifying or redistributing this piece of code, I will change it per request.

speechbubbler's People

Contributors

cristeigabriel avatar

Stargazers

 avatar

Watchers

 avatar

speechbubbler's Issues

Further image format support

Should look into supporting more formats, especially GIF which could be a common scenario for such a library considering the context.

Such would require special-casing image data reading for gif, forking the library we use for such currently, or eventually maybe even getting fully rid of the library? I'm thinking the second sounds best and JavaScript could support it really, really well.

This will also require wrapping data manipulation to take the matrix to work over as an argument so we can iterate every frame of a GIF.

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.