summaryrefslogtreecommitdiff
path: root/scripts/webcamscript
diff options
context:
space:
mode:
authorFlorian <florianraemisch@web.de>2011-12-14 23:58:07 +0100
committerChristian Franke <nobody@nowhere.ws>2012-01-12 11:59:28 +0100
commita0f1fb65be5b45b51156d8fcbaaeadea2fd47356 (patch)
tree2b5899e6422336cb742d29339fbc63c96e245993 /scripts/webcamscript
parent04d0ebf9a29434cb74f1e8515298891c2162d09d (diff)
added contrast stretch to webcam thumb
Diffstat (limited to 'scripts/webcamscript')
-rw-r--r--scripts/webcamscript2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/webcamscript b/scripts/webcamscript
index 883ef79..4e83c9a 100644
--- a/scripts/webcamscript
+++ b/scripts/webcamscript
@@ -8,7 +8,7 @@ TIME=`date +"%H"`
wget "${URL}" $WGET_ARGS -O ${WEBPATH}/public/img/buffer.${NAME}.webcam.jpg &> /dev/null || exit 1
cp ${WEBPATH}/public/img/buffer.${NAME}.webcam.jpg ${WEBPATH}/public/img/buffer.thumb.${NAME}.webcam.jpg
-mogrify -resize 200x150 ${WEBPATH}/public/img/buffer.thumb.${NAME}.webcam.jpg
+mogrify -contrast-stretch 0 -resize 200x150 ${WEBPATH}/public/img/buffer.thumb.${NAME}.webcam.jpg
if [ x"${TIMESTAMP}" == x"yes" ]; then
if [ $TIME -lt 6 ] || [ $TIME -ge 18 ]; then
mogrify -contrast-stretch 0 -adaptive-sharpen 3 -fill white -gravity SouthEast -draw "text 10,10 '${TODAY}'" ${WEBPATH}/public/img/buffer.${NAME}.webcam.jpg