Created
April 18, 2014 15:30
-
-
Save jalev/11050070 to your computer and use it in GitHub Desktop.
A script that will take a webcam picture. The intent is that you put this in a post-commit script and get a buncha pictures of your ugly mug
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
IMAGEDIR="/git_commit" | |
REPONAME=$(basename `git rev-parse --show-toplevel`) | |
IMAGENAME="screenshot_$(date +"%d-%m-%y_%H-%M-%S").jpeg" | |
IMAGESTORE="$HOME/$IMAGEDIR/$REPONAME" | |
if [[ ! -e $IMAGESTORE && ! -d $IMAGESTORE ]] | |
then | |
mkdir "$IMAGESTORE" | |
fi | |
streamer -f jpeg -s 800x600 -o $IMAGESTORE/$IMAGENAME |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Make sure you have Streamer installer or this wont work