From fea9023dbc9aee0adbd19d0011c0d883aa98584e Mon Sep 17 00:00:00 2001 From: Packit Date: Sep 21 2020 08:48:23 +0000 Subject: Apply patch noto-emoji-use-gm.patch patch_name: noto-emoji-use-gm.patch present_in_specfile: true location_in_specfile: 3 --- diff --git a/Makefile b/Makefile index c46cef4..850ce83 100644 --- a/Makefile +++ b/Makefile @@ -20,7 +20,8 @@ LDFLAGS = -lm `pkg-config --libs cairo` PNGQUANT = pngquant PNGQUANTFLAGS = --speed 1 --skip-if-larger --quality 85-95 --force BODY_DIMENSIONS = 136x128 -IMOPS := -size $(BODY_DIMENSIONS) canvas:none -compose copy -gravity center +#IMOPS := -size $(BODY_DIMENSIONS) canvas:none -compose copy -gravity center +IMOPS = -size 136x128 -background none -gravity center -extent 136x128 -compose copy # 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. @@ -172,13 +173,13 @@ waveflag: waveflag.c # imagemagick packaged with ubuntu trusty (6.7.7-10) by using -composite. $(EMOJI_DIR)/%.png: $(EMOJI_SRC_DIR)/%.png | $(EMOJI_DIR) - @convert $(IMOPS) "$<" -composite "PNG32:$@" + @gm convert $(IMOPS) "$<" "PNG32:$@" $(FLAGS_DIR)/%.png: $(FLAGS_SRC_DIR)/%.png ./waveflag $(PNGQUANT) | $(FLAGS_DIR) @./waveflag $(FLAGS_DIR)/ "$<" $(RESIZED_FLAGS_DIR)/%.png: $(FLAGS_DIR)/%.png | $(RESIZED_FLAGS_DIR) - @convert $(IMOPS) "$<" -composite "PNG32:$@" + @gm convert $(IMOPS) "$<" "PNG32:$@" flag-symlinks: $(RESIZED_FLAG_FILES) | $(RENAMED_FLAGS_DIR) @$(subst ^, , \