Skip to content

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

License

Notifications You must be signed in to change notification settings

amboy00/photo-booth

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages