about summary refs log tree commit diff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--edit.mk20
1 files changed, 19 insertions, 1 deletions
diff --git a/edit.mk b/edit.mk
index 23671f9..48f6856 100644
--- a/edit.mk
+++ b/edit.mk
@@ -10,4 +10,22 @@ change:
 	@ ${MAKE} gen
 	@ ${MAKE} commit
 
-.PHONY: commit edit
+.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