summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xcamera/camera11
1 files changed, 10 insertions, 1 deletions
diff --git a/camera/camera b/camera/camera
index 75b6213..3724999 100755
--- a/camera/camera
+++ b/camera/camera
@@ -92,6 +92,10 @@ while [[ $# -gt 0 ]]; do
fi
shift
;;
+ -z|--zoom)
+ ZOOM="yes"
+ shift
+ ;;
-h|--help)
camera_help
exit 0
@@ -131,7 +135,12 @@ if [[ "${OPTION_TIMELAPSE}" = "yes" ]]; then
fi
fi
-CMD_EXEC="rpicam-still --verbose --fullscreen --timeout 0 "
+CMD_EXEC="rpicam-still --verbose --timeout 0 "
+if [ "${ZOOM}" = "yes" ]; then
+ CMD_EXEC+="--viewfinder-width 1024 --viewfinder-height 768 "
+else
+ CMD_EXEC+="--fullscreen "
+fi
CMD_EXEC+="${CMD_CONTROL} ${CMD_CAPTURE} "
CMD_EXEC+="--width 4056 --height 3040 "
CMD_EXEC+="--thumb none --datetime --output /srv/smb/DCIM/${DIRECTORY}${FILENAME}_%s${SUFFIX}.jpg"