Giter VIP home page Giter VIP logo

photo-booth's Introduction

photo-booth

Bash script that takes photos, turns them into a gif with a caption.

Installation

Requires ImageMagick and other packages installed via homebrew

brew install imagesnap
brew install imagemagick
brew install jp2a
npm install picture-tube -g

Note: THis script can run either jp2a or picture-tube. The former uses ASCII text and a limited terminal color pallet to print the image to screen. The latter uses background text colors and a higher pallet to print the image at a specified width. Both of these are fine, but some terminals do not support large color pallets. You can change the script where this is used.

Twitter

To use twitter from the command line, install the t gem. And follow its setup instructions. If your target Twitter account already has your "app" created and authorized, then you just need to reauthorize for your computer.

gem install t

link

Make a link to the shell script if you want to avoid having to type ./gifme.sh every time.

$ ln -s ~/location-top/photo-booth/gifme.sh ~/bin/photobooth

Note: the command photobooth will work, but you still need to run it from within the "photo-booth" directory to read the ASCII font. Sorry.

Requires a camera on the computer to work.

Usage

Run the shell script gifme.

./gifme.sh -w 'Your text here.'

Use with caution!

Currently uses a rm command that isn't very secure. Someone could make this an alias and run it from the wrong directory. Make the clean up process safer. Only run this script from this directory.

Optional

In the script, we have a command that posts to Twitter using t. It takes some set up, but it's fun too.

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.