Bash script that takes photos, turns them into a gif with a caption.
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
orpicture-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.
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
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.
Run the shell script gifme.
./gifme.sh -w 'Your text here.'
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.
In the script, we have a command that posts to Twitter using t. It takes some set up, but it's fun too.