blob: 48f6856b8aa200e2250f3ac450f2a88b08624f4e (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
commit:
@ git add -v -- $(shell git ls-files -dmo site/ links/ media/ src/inc/ | fzf -m)
@ git commit -m "% update site" -esS
edit:
@ ${EDITOR} src/inc/$(shell pushd src/inc >/dev/null && git ls-files -c . | fzf -m --bind=ctrl-c:accept-or-print-query)
change:
@ ${MAKE} edit
@ ${MAKE} gen
@ ${MAKE} commit
.PHONY: commit edit change
compress:
# => https://kokorobot.ca/site/image_optimization.html
magick $(IN) \
-sampling-factor 4:2:0 \
-strip \
-quality 85 \
-interlace line \
$(OUT)
# -colorspace sRGB \
dither:
# => https://legacy.imagemagick.org/Usage/quantize/#ordered-dither
magick $(IN) \
-ordered-dither o8x8 \
$(OUT)
.PHONY: compress dither
|