Git Product home page Git Product logo

speech-bubble-it's Introduction

Speech Bubble It

Speech Bubble It is a Python script that puts a speech bubble on an image.

About

Online communication is accompanied by various jokes in the form of images (mostly memes). These also include speech bubbles.

The point of such images is that the sender presents the user in a chat as a character or a thing that speaks its message in a speech bubble.

Example

./input/input.jpg ./output/output.png
python speech_bubble_it.py .\input\input.jpg .\output\output.png

Instructions

This script does not require large resources to create an image with a speech bubble. It requires Python 3.10 or above and these dependencies:

  • Pillow

You can install them by running pip install -r requirements.txt

Speech Bubble It can be used from the command line:

python speech_bubble_it.py <image_file> <output_file>

where

  • <image_file> is the path to an image you want to put speech bubble on;
  • <output_file> is the path to the file where the result will be written to.

The script supports such image formats as .png, .jpg, .jpeg, .gif, .bmp, .webp and .tiff.

Optional arguments

You can transform your speech bubble by these flags:

  • -h, --help — help information;
  • -m, --mirror — flips speech bubble horizontally;
  • -o, --orientation — changes speech bubble orientation (1: on the top; 2: on the left; 3: on the bottom; 4: on the right).

Contributions

This repository is open for contributing. So feel free to open issues and make pull requests.

TODO

  • The support of images from web
  • The support of GIF animations
  • Vector image of the speech bubble instead of .png

speech-bubble-it's People

Contributors

adambala avatar

Stargazers

 avatar  avatar  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.