diff --git a/.gitignore b/.gitignore index c8060d8..744f6ae 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ data/plats.geojson data/track.geojson satellite/ +images/thumbs/* diff --git a/Makefile b/Makefile index 2763de7..e020120 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,17 @@ +THUMB_SRC := $(wildcard images/*.jpg) +THUMB_FILES := $(patsubst images/%.jpg, images/thumbs/%.jpg, $(THUMB_SRC)) + .PHONY: deploy -deploy: data/plats.json data/track.geojson satellite +deploy: data/plats.json data/track.geojson satellite $(THUMB_FILES) rsync -avz --exclude=unused/ --delete ./ bert:/srv/www/lawrencedeerclub.chandlerswift.com/ +# Build a thumbnail next to each source image so new photos are picked up automatically. +images/thumbs/%.jpg: images/%.jpg | images/thumbs + magick $< -resize 400x400 -quality 80 $@ + +images/thumbs: + mkdir -p $@ + data/plats.json: scripts/get_plats.py ./scripts/get_plats.py data/plats.geojson diff --git a/images/thumbs/alans.jpg b/images/thumbs/alans.jpg deleted file mode 100644 index e5cb651..0000000 Binary files a/images/thumbs/alans.jpg and /dev/null differ diff --git a/images/thumbs/castle.jpg b/images/thumbs/castle.jpg deleted file mode 100644 index 5973209..0000000 Binary files a/images/thumbs/castle.jpg and /dev/null differ diff --git a/images/thumbs/eastbarrel.jpg b/images/thumbs/eastbarrel.jpg deleted file mode 100644 index 16e4123..0000000 Binary files a/images/thumbs/eastbarrel.jpg and /dev/null differ diff --git a/images/thumbs/fridge.jpg b/images/thumbs/fridge.jpg deleted file mode 100644 index 371fb8b..0000000 Binary files a/images/thumbs/fridge.jpg and /dev/null differ diff --git a/images/thumbs/hummock.jpg b/images/thumbs/hummock.jpg deleted file mode 100644 index 110be42..0000000 Binary files a/images/thumbs/hummock.jpg and /dev/null differ diff --git a/images/thumbs/ironcastle.jpg b/images/thumbs/ironcastle.jpg deleted file mode 100644 index 2848706..0000000 Binary files a/images/thumbs/ironcastle.jpg and /dev/null differ diff --git a/images/thumbs/irontree.jpg b/images/thumbs/irontree.jpg deleted file mode 100644 index 5554743..0000000 Binary files a/images/thumbs/irontree.jpg and /dev/null differ diff --git a/images/thumbs/ladder.jpg b/images/thumbs/ladder.jpg deleted file mode 100644 index bbdfce9..0000000 Binary files a/images/thumbs/ladder.jpg and /dev/null differ diff --git a/images/thumbs/point.jpg b/images/thumbs/point.jpg deleted file mode 100644 index d9ad372..0000000 Binary files a/images/thumbs/point.jpg and /dev/null differ diff --git a/images/thumbs/ridge.jpg b/images/thumbs/ridge.jpg deleted file mode 100644 index 3031070..0000000 Binary files a/images/thumbs/ridge.jpg and /dev/null differ diff --git a/images/thumbs/sofa.jpg b/images/thumbs/sofa.jpg deleted file mode 100644 index b4074e4..0000000 Binary files a/images/thumbs/sofa.jpg and /dev/null differ diff --git a/images/thumbs/threeleggedbarrel.jpg b/images/thumbs/threeleggedbarrel.jpg deleted file mode 100644 index c218a35..0000000 Binary files a/images/thumbs/threeleggedbarrel.jpg and /dev/null differ diff --git a/images/thumbs/tupperware.jpg b/images/thumbs/tupperware.jpg deleted file mode 100644 index 71b66ee..0000000 Binary files a/images/thumbs/tupperware.jpg and /dev/null differ