diff options
| author | Ingar <ingar@telenet.be> | 2026-02-25 23:35:21 +0100 |
|---|---|---|
| committer | Ingar <ingar@telenet.be> | 2026-02-25 23:35:21 +0100 |
| commit | 9c205c434c7882a15b2214786363bfe04f9c660f (patch) | |
| tree | 69d8066a87ce34c077ea387f065855d570496483 | |
| parent | 3331f69dda835fc7714dc84c367d54523ed32e16 (diff) | |
Added experimental zoom support.
| -rwxr-xr-x | camera/camera | 11 |
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" |
