summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorst33v <github@f3rr3t.com>2016-09-10 20:02:43 +1000
committerst33v <github@f3rr3t.com>2016-09-10 20:02:43 +1000
commitd10da3eb21bfb91ebad508669654269a95e8bb34 (patch)
tree19d08f2b1c87532667f06f365b8fe1f5ee57b0b9
parentd05bcfedfd3547838ac60204fbd47e442dc88b2c (diff)
replaced silly width=1200 with mode =5 (1296x730)
-rwxr-xr-xtakepix.sh9
1 files changed, 6 insertions, 3 deletions
diff --git a/takepix.sh b/takepix.sh
index 444a33c..dbd81b5 100755
--- a/takepix.sh
+++ b/takepix.sh
@@ -4,14 +4,17 @@ picdir="/home/st33v/pix"
picdate=$(date +%Y-%m-%d_%H%M)
thispic=$picdir/$picdate.jpg
-echo thispic = $thispic
+#echo thispic = $thispic
-/opt/vc/bin/raspistill -x IFD1.Artist=neatherd -w 1200 -o $thispic
+/opt/vc/bin/raspistill -x IFD1.Artist=neatherd -q 70 -md 5 -o $thispic
+
+# silly portrait shape
+#/opt/vc/bin/raspistill -x IFD1.Artist=neatherd -w 1200 -o $thispic
# now check to see if the pic is too dark (i.e. taken at night)
mean=$(identify -format %[mean] $thispic | sed s/[.].*//)
-echo mean is "$mean"
+#echo mean is "$mean"
# too dark
if [ $mean -lt 2000 ]; then