Add squezer for extracting exif data

This commit is contained in:
Paul Brinkmeier
2025-02-19 18:40:40 +01:00
parent e3ed6a5089
commit 53e7cb9575
8 changed files with 402 additions and 87 deletions
+2 -2
View File
@@ -48,9 +48,9 @@ $(THUMB_DIR)/%.webp: $(DIST_DIR)/%.jpg
$(BUILD_DIR)/index.json: $(build_metas) build-index.py
./build-index.py $(filter-out build-index.py,$^) > $@
$(BUILD_DIR)/%.meta.json: $(DIST_DIR)/%.jpg $(THUMB_DIR)/%.webp extract-metadata.py
$(BUILD_DIR)/%.meta.json: $(DIST_DIR)/%.jpg $(THUMB_DIR)/%.webp
@mkdir -p $(BUILD_DIR)
./extract-metadata.py --root $(DIST_DIR) --dist-path $(patsubst $(BUILD_DIR)/%.meta.json,$(DIST_DIR)/%.html,$@) --key $(patsubst $(BUILD_DIR)/%.meta.json,%,$@) --thumbnail $(patsubst $(BUILD_DIR)/%.meta.json,$(THUMB_DIR)/%.webp,$@) $< > $@
squeezer --root $(DIST_DIR) --dist-path $(patsubst $(BUILD_DIR)/%.meta.json,$(DIST_DIR)/%.html,$@) --key $(patsubst $(BUILD_DIR)/%.meta.json,%,$@) --thumbnail $(patsubst $(BUILD_DIR)/%.meta.json,$(THUMB_DIR)/%.webp,$@) $< > $@
$(DIST_DIR)/index.html: $(BUILD_DIR)/index.json index.hbs
@mkdir -p $(DIST_DIR)