summaryrefslogtreecommitdiff
path: root/make_photo
diff options
context:
space:
mode:
authorRobert Scheibe <mail@robert-scheibe.de>2024-12-19 21:34:28 +0100
committerRobert Scheibe <mail@robert-scheibe.de>2024-12-19 21:34:28 +0100
commit9ee7efb4bc032ccebb021e70bb8d227193f9497a (patch)
tree049b72eb766a2ecb3cf370083105191e9a00eaa4 /make_photo
initial commit
Diffstat (limited to 'make_photo')
-rwxr-xr-xmake_photo10
1 files changed, 10 insertions, 0 deletions
diff --git a/make_photo b/make_photo
new file mode 100755
index 0000000..f6818f1
--- /dev/null
+++ b/make_photo
@@ -0,0 +1,10 @@
+#!/bin/bash
+export LC_TIME=de_DE.utf-8
+image=/mnt/ramdisk/$(date +'%H_%M').jpg
+image_small=/mnt/ramdisk/$(date +'%H_%M')_thumb.jpg
+
+
+rpicam-still -o $image
+#add date string
+convert $image -resize 1024x768 -gravity SouthEast -font DejaVu-Sans -pointsize 50 -stroke black -undercolor black -bordercolor white -border 10 -fill "rgba(255,255,255,0.5)" -annotate +30+30 "$(date +\\'%Y-%m-%d %H:%M\')" $image
+convert $image -resize 200x150 $image_small