From 7119606f52e57d046b4799e9e5d2502688b3a01b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9ophile=20Bastian?= Date: Thu, 3 Feb 2022 13:17:25 +0100 Subject: [PATCH] Pictures: generate thumb/ directory --- pictures/Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pictures/Makefile b/pictures/Makefile index d64cfeb..9ad278b 100644 --- a/pictures/Makefile +++ b/pictures/Makefile @@ -7,7 +7,10 @@ CONVERT_OPTIONS = -quality 75 -strip -interlace Plane +repage all: $(THUMBS) -thumb/%.jpg: full/%.jpg +thumb: + mkdir -p thumb + +thumb/%.jpg: full/%.jpg thumb convert "$<" \ -resize '$(THUMB_DIM)x$(THUMB_DIM)^' \ -gravity "$$(./gravityof.sh "$<")" \