Pictures: move to directories
|
@ -8,26 +8,26 @@ georgespics:
|
||||||
osm: https://www.openstreetmap.org/#map=14/45.1612/5.9444
|
osm: https://www.openstreetmap.org/#map=14/45.1612/5.9444
|
||||||
date: 2021-06-27
|
date: 2021-06-27
|
||||||
pics:
|
pics:
|
||||||
- path: 2021-06-pra1.jpg
|
- path: 2021-06-pra/pra1.jpg
|
||||||
- path: 2021-06-pra2.jpg
|
- path: 2021-06-pra/pra2.jpg
|
||||||
- path: 2021-06-pra3.jpg
|
- path: 2021-06-pra/pra3.jpg
|
||||||
- path: 2021-06-pra4.jpg
|
- path: 2021-06-pra/pra4.jpg
|
||||||
- name: Pen-Bé, Bretagne
|
- name: Pen-Bé, Bretagne
|
||||||
osm: https://www.openstreetmap.org/#map=14/47.4205/-2.4575
|
osm: https://www.openstreetmap.org/#map=14/47.4205/-2.4575
|
||||||
date: 2021-07-05
|
date: 2021-07-05
|
||||||
pics:
|
pics:
|
||||||
- path: 2021-07-penbe1.jpg
|
- path: 2021-07-penbe/penbe1.jpg
|
||||||
- path: 2021-07-penbe2.jpg
|
- path: 2021-07-penbe/penbe2.jpg
|
||||||
- name: Mourèze, Hérault
|
- name: Mourèze, Hérault
|
||||||
osm: https://www.openstreetmap.org/#map=15/43.6191/3.3517
|
osm: https://www.openstreetmap.org/#map=15/43.6191/3.3517
|
||||||
date: 2021-07-27
|
date: 2021-07-27
|
||||||
pics:
|
pics:
|
||||||
- path: 2021-07-moureze1.jpg
|
- path: 2021-07-moureze/moureze1.jpg
|
||||||
- name: Dent de Crolles, Alpes
|
- name: Dent de Crolles, Alpes
|
||||||
osm: https://www.openstreetmap.org/#map=15/45.3105/5.8559
|
osm: https://www.openstreetmap.org/#map=15/45.3105/5.8559
|
||||||
date: 2021-11-13
|
date: 2021-11-13
|
||||||
pics:
|
pics:
|
||||||
- path: 2021-11-crolles1.jpg
|
- path: 2021-11-crolles/crolles1.jpg
|
||||||
- path: 2021-11-crolles2.jpg
|
- path: 2021-11-crolles/crolles2.jpg
|
||||||
- path: 2021-11-crolles3.jpg
|
- path: 2021-11-crolles/crolles3.jpg
|
||||||
---
|
---
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
FULLPICS = $(wildcard full/*.jpg)
|
FULLPICS = $(shell find full -name '*.jpg')
|
||||||
THUMBS = $(patsubst full/%.jpg,thumb/%.jpg,$(FULLPICS))
|
THUMBS = $(patsubst full/%.jpg,thumb/%.jpg,$(FULLPICS))
|
||||||
|
|
||||||
THUMB_DIM = 400
|
THUMB_DIM = 400
|
||||||
|
@ -7,10 +7,8 @@ CONVERT_OPTIONS = -quality 75 -strip -interlace Plane +repage
|
||||||
|
|
||||||
all: $(THUMBS)
|
all: $(THUMBS)
|
||||||
|
|
||||||
thumb:
|
thumb/%.jpg: full/%.jpg
|
||||||
mkdir -p thumb
|
mkdir -p "$$(dirname "$@")"
|
||||||
|
|
||||||
thumb/%.jpg: full/%.jpg thumb
|
|
||||||
convert "$<" \
|
convert "$<" \
|
||||||
-resize '$(THUMB_DIM)x$(THUMB_DIM)^' \
|
-resize '$(THUMB_DIM)x$(THUMB_DIM)^' \
|
||||||
-gravity "$$(./gravityof.sh "$<")" \
|
-gravity "$$(./gravityof.sh "$<")" \
|
||||||
|
|
Before Width: | Height: | Size: 494 KiB After Width: | Height: | Size: 494 KiB |
Before Width: | Height: | Size: 474 KiB After Width: | Height: | Size: 474 KiB |
Before Width: | Height: | Size: 518 KiB After Width: | Height: | Size: 518 KiB |
Before Width: | Height: | Size: 261 KiB After Width: | Height: | Size: 261 KiB |
Before Width: | Height: | Size: 555 KiB After Width: | Height: | Size: 555 KiB |
Before Width: | Height: | Size: 2.8 MiB After Width: | Height: | Size: 2.8 MiB |
Before Width: | Height: | Size: 2.5 MiB After Width: | Height: | Size: 2.5 MiB |
Before Width: | Height: | Size: 567 KiB After Width: | Height: | Size: 567 KiB |
Before Width: | Height: | Size: 497 KiB After Width: | Height: | Size: 497 KiB |
Before Width: | Height: | Size: 567 KiB After Width: | Height: | Size: 567 KiB |