summaryrefslogtreecommitdiff
path: root/makefile
diff options
context:
space:
mode:
author53hornet <53hornet@gmail.com>2018-09-03 20:37:17 -0400
committer53hornet <53hornet@gmail.com>2018-09-03 20:37:17 -0400
commit7b3d4f4a18f0269ee626a1fe555cacf0966bb4d9 (patch)
tree9e789eb7504f27d9bca553b303bd9047a49f83d1 /makefile
parent2f0780b82f507bfb7958ec2bc6aa188cac677c09 (diff)
downloadmd-site-7b3d4f4a18f0269ee626a1fe555cacf0966bb4d9.tar.xz
md-site-7b3d4f4a18f0269ee626a1fe555cacf0966bb4d9.zip
Added imagemagick compression to JPG and PNG images.
Diffstat (limited to 'makefile')
-rw-r--r--makefile4
1 files changed, 2 insertions, 2 deletions
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)