blob: b3042134527c5441e5ed5ece51bfe731e66badff (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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/
|