From b82b2b1a4051fe3ee0144f44791397a30ca17dd5 Mon Sep 17 00:00:00 2001 From: dan Date: Tue, 31 Oct 2023 11:04:59 -0400 Subject: init --- build-and-deploy.sh | 19 ++++++ captions.json | 3 + images.json | 3 + index.html | 125 ++++++++++++++++++++++++++++++++++++ photos-original/20231003_071927.jpg | Bin 0 -> 2920034 bytes photos/20231003_071927.jpg | Bin 0 -> 142230 bytes 6 files changed, 150 insertions(+) create mode 100755 build-and-deploy.sh create mode 100644 captions.json create mode 100644 images.json create mode 100644 index.html create mode 100644 photos-original/20231003_071927.jpg create mode 100644 photos/20231003_071927.jpg diff --git a/build-and-deploy.sh b/build-and-deploy.sh new file mode 100755 index 0000000..b304213 --- /dev/null +++ b/build-and-deploy.sh @@ -0,0 +1,19 @@ +#!/bin/bash + +build () { + for i in $(comm -13 <(ls photos) <(ls photos-original)) ; do + convert "photos-original/$i" -resize 480x480 "photos/$i" + exiftool -q -q -overwrite_original -Software= -gps:all= -camera:all= "photos/$i" + chmod 644 "photos/$i" + done + + ls photos \ + | sort -r \ + | sed 's~.*~ { "path": "photos/&" },~ ; 1i [ + ; $s/,$//;$a ]' \ + > images.json +} + +build + +rsync --recursive --delete --exclude='*original*' captions.json images.json index.html photos sync_root:/www-public/photos/ diff --git a/captions.json b/captions.json new file mode 100644 index 0000000..273ad3e --- /dev/null +++ b/captions.json @@ -0,0 +1,3 @@ +{ + "photos/20231003_071927.jpg": "SomeCaption" +} diff --git a/images.json b/images.json new file mode 100644 index 0000000..bd8eda0 --- /dev/null +++ b/images.json @@ -0,0 +1,3 @@ +[ + { "path": "photos/20231003_071927.jpg" } +] diff --git a/index.html b/index.html new file mode 100644 index 0000000..4e776f5 --- /dev/null +++ b/index.html @@ -0,0 +1,125 @@ + + + + danrh + + + + +

Some Photos

+ That I either took or am a subject of. +
+ + + diff --git a/photos-original/20231003_071927.jpg b/photos-original/20231003_071927.jpg new file mode 100644 index 0000000..1b9fa0c Binary files /dev/null and b/photos-original/20231003_071927.jpg differ diff --git a/photos/20231003_071927.jpg b/photos/20231003_071927.jpg new file mode 100644 index 0000000..271c8f5 Binary files /dev/null and b/photos/20231003_071927.jpg differ -- cgit v1.2.3