Pictures: move to directories

This commit is contained in:
Théophile Bastian 2022-03-03 20:54:51 +01:00
parent fb70cd7a51
commit eddaffdf8a
13 changed files with 13 additions and 15 deletions

View File

@ -8,26 +8,26 @@ georgespics:
osm: https://www.openstreetmap.org/#map=14/45.1612/5.9444
date: 2021-06-27
pics:
- path: 2021-06-pra1.jpg
- path: 2021-06-pra2.jpg
- path: 2021-06-pra3.jpg
- path: 2021-06-pra4.jpg
- path: 2021-06-pra/pra1.jpg
- path: 2021-06-pra/pra2.jpg
- path: 2021-06-pra/pra3.jpg
- path: 2021-06-pra/pra4.jpg
- name: Pen-Bé, Bretagne
osm: https://www.openstreetmap.org/#map=14/47.4205/-2.4575
date: 2021-07-05
pics:
- path: 2021-07-penbe1.jpg
- path: 2021-07-penbe2.jpg
- path: 2021-07-penbe/penbe1.jpg
- path: 2021-07-penbe/penbe2.jpg
- name: Mourèze, Hérault
osm: https://www.openstreetmap.org/#map=15/43.6191/3.3517
date: 2021-07-27
pics:
- path: 2021-07-moureze1.jpg
- path: 2021-07-moureze/moureze1.jpg
- name: Dent de Crolles, Alpes
osm: https://www.openstreetmap.org/#map=15/45.3105/5.8559
date: 2021-11-13
pics:
- path: 2021-11-crolles1.jpg
- path: 2021-11-crolles2.jpg
- path: 2021-11-crolles3.jpg
- path: 2021-11-crolles/crolles1.jpg
- path: 2021-11-crolles/crolles2.jpg
- path: 2021-11-crolles/crolles3.jpg
---

View File

@ -1,4 +1,4 @@
FULLPICS = $(wildcard full/*.jpg)
FULLPICS = $(shell find full -name '*.jpg')
THUMBS = $(patsubst full/%.jpg,thumb/%.jpg,$(FULLPICS))
THUMB_DIM = 400
@ -7,10 +7,8 @@ CONVERT_OPTIONS = -quality 75 -strip -interlace Plane +repage
all: $(THUMBS)
thumb:
mkdir -p thumb
thumb/%.jpg: full/%.jpg thumb
thumb/%.jpg: full/%.jpg
mkdir -p "$$(dirname "$@")"
convert "$<" \
-resize '$(THUMB_DIM)x$(THUMB_DIM)^' \
-gravity "$$(./gravityof.sh "$<")" \

View File

Before

Width:  |  Height:  |  Size: 494 KiB

After

Width:  |  Height:  |  Size: 494 KiB

View File

Before

Width:  |  Height:  |  Size: 474 KiB

After

Width:  |  Height:  |  Size: 474 KiB

View File

Before

Width:  |  Height:  |  Size: 518 KiB

After

Width:  |  Height:  |  Size: 518 KiB

View File

Before

Width:  |  Height:  |  Size: 261 KiB

After

Width:  |  Height:  |  Size: 261 KiB

View File

Before

Width:  |  Height:  |  Size: 555 KiB

After

Width:  |  Height:  |  Size: 555 KiB

View File

Before

Width:  |  Height:  |  Size: 2.8 MiB

After

Width:  |  Height:  |  Size: 2.8 MiB

View File

Before

Width:  |  Height:  |  Size: 2.5 MiB

After

Width:  |  Height:  |  Size: 2.5 MiB

View File

Before

Width:  |  Height:  |  Size: 567 KiB

After

Width:  |  Height:  |  Size: 567 KiB

View File

Before

Width:  |  Height:  |  Size: 497 KiB

After

Width:  |  Height:  |  Size: 497 KiB

View File

Before

Width:  |  Height:  |  Size: 567 KiB

After

Width:  |  Height:  |  Size: 567 KiB