From f88164ac0a9686d715324852ab25c381b11f3a2d Mon Sep 17 00:00:00 2001 From: Peter Oliver Date: Fri, 17 Nov 2017 16:09:53 +0000 Subject: [PATCH] Make it easier to assemble images of other sizes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Until https://github.com/googlei18n/noto-emoji/issues/9 arrives, this will make it slightly more convenient to use this `Makefile` to build Twemoji, which uses 72 × 72 pixel PNGs. --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 9b21a0fe6..048422bb2 100644 --- a/Makefile +++ b/Makefile @@ -20,7 +20,8 @@ LDFLAGS = -lm `pkg-config --libs cairo` PNGQUANTDIR := third_party/pngquant PNGQUANT := $(PNGQUANTDIR)/pngquant PNGQUANTFLAGS = --speed 1 --skip-if-larger --quality 85-95 --force -IMOPS = -size 136x128 canvas:none -compose copy -gravity center +BODY_DIMENSIONS = 136x128 +IMOPS := -size $(BODY_DIMENSIONS) canvas:none -compose copy -gravity center # zopflipng is better (about 5-10%) but much slower. it will be used if # present. pass ZOPFLIPNG= as an arg to make to use optipng instead.