summaryrefslogtreecommitdiff
path: root/examples/Makefile
diff options
context:
space:
mode:
authorJohannes Hofmann <Johannes.Hofmann@gmx.de>2026-10-30 09:32:00 +0100
committerJohannes Hofmann <Johannes.Hofmann@gmx.de>2026-10-30 09:32:00 +0100
commitfc07e1b7b2849110679abc806760567a47c36e9f (patch)
tree8c52dd0bd9b8c18370847a16c255ab6c4b599ffa /examples/Makefile
parenta40c31c2da22d155da49f8fc2e79aece004e601f (diff)
examples: size slides and thumbs for ordinary photos too
The historical 20000x500 slide rule was strip-specific: a normal 4:3 photo was squeezed to 500 px height. Cap the long edge at 6000 px instead (full size for typical photos, sane for stitched images); thumbs fit 480x480 so gallery cards and hover popups look right for both aspect ratios.
Diffstat (limited to 'examples/Makefile')
-rw-r--r--examples/Makefile7
1 files changed, 5 insertions, 2 deletions
diff --git a/examples/Makefile b/examples/Makefile
index 88812c1..e3befc6 100644
--- a/examples/Makefile
+++ b/examples/Makefile
@@ -49,11 +49,14 @@ style: gipfelweb/style.css
gipfelweb/style.css: $(here)style.css
cp $< $@
+# slides: web display size, capped at 6000 px on the long edge so
+# both normal photos and very wide stitched images keep a sane size
gipfelweb/slides/%.jpg: %.jpg
- convert $< -filter Lanczos -resize 20000x500\> -quality 94 $@
+ convert $< -filter Lanczos -resize 6000x6000\> -quality 90 $@
+# thumbs: gallery cards and hover popups
gipfelweb/thumbs/%.jpg: %.jpg
- convert $< -filter Point -resize 400x50\> -quality 80 $@
+ convert $< -filter Point -resize 480x480\> -quality 80 $@
gipfelweb/gipfel/%.pos: %.jpg
$(GIPFEL_CLI) export-position $< > $@