From 7b3d4f4a18f0269ee626a1fe555cacf0966bb4d9 Mon Sep 17 00:00:00 2001 From: 53hornet <53hornet@gmail.com> Date: Mon, 3 Sep 2018 20:37:17 -0400 Subject: Added imagemagick compression to JPG and PNG images. --- makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'makefile') diff --git a/makefile b/makefile index 74435b6..0a3af0b 100644 --- a/makefile +++ b/makefile @@ -28,12 +28,12 @@ img: $(JPG_OUT) $(PNG_OUT) html/%.jpg: md/%.jpg @echo "img: $< -> $@" @mkdir -p "$(@D)" - @cp "$<" "$@" + @convert "$<" -sampling-factor 4:2:0 -strip -quality 85 -interlace JPEG -colorspace RGB -resize 1000x1000\> "$@" html/%.png: md/%.png @echo "img: $< -> $@" @mkdir -p "$(@D)" - @cp "$<" "$@" + @convert "$<" -strip -quality 90 -resize 1000x1000\> "$@" .PHONY: 53hor.net 53hor.net: $(53HORNET_OUT) -- cgit v1.2.3