From e01fd685f236bbe131734af6be0f340cde79de94 Mon Sep 17 00:00:00 2001 From: Alex Xu Date: Wed, 8 Jan 2014 14:19:11 -0500 Subject: Move trim to Makefile --- Makefile | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 48d796e..607d18e 100644 --- a/Makefile +++ b/Makefile @@ -5,8 +5,10 @@ FFMPEG ?= ffmpeg FFMPEG += -v warning $(FFMPEGFLAGS) OPUSENC ?= opusenc ZOPFLIPNG ?= zopflipng +OPTIPNG ?= optipng JPEGOPTIM ?= jpegoptim CWEBP ?= cwebp +CWEBP += -short -alpha_cleanup WEBPMUX ?= webpmux CONVERT ?= convert APNGASM ?= apngasm @@ -77,6 +79,12 @@ images: $(WEBP) $(CTC_ANIM) www/favicon.ico www/favicon.ico: $(DUMP)/ui/icon.png $(CONVERT) $< -resize 256x256 -transparent white $@ +$(DUMP)/ui/bt-cf-unchecked.webp $(DUMP)/ui/bt-cf-checked.webp: %.webp: %.png + $(CONVERT) -trim $< $< + $(OPTIPNG) -o7 $< + $(ZOPFLIPNG) -m -y $< $< + $(CWEBP) -q 99 -m 6 $< -o $@ + $(DUMP)/ui/ctc_strip-0.png: $(CTC_ANIM_SRC) $(CONVERT) $< -crop 16x16 $(patsubst %.png,%*.png,$<) -- cgit v1.2.3-70-g09d2