Blame SOURCES/noto-emoji-use-gm.patch

4c9833
Index: noto-emoji-352632eb1935fd2b732f6f3ca0a24e9754c3eccf/Makefile
4c9833
===================================================================
4c9833
--- noto-emoji-352632eb1935fd2b732f6f3ca0a24e9754c3eccf.orig/Makefile
4c9833
+++ noto-emoji-352632eb1935fd2b732f6f3ca0a24e9754c3eccf/Makefile
4c9833
@@ -20,7 +20,8 @@ LDFLAGS = -lm `pkg-config --libs cairo`
4c9833
 PNGQUANT = pngquant
4c9833
 PNGQUANTFLAGS = --speed 1 --skip-if-larger --quality 85-95 --force
4c9833
 BODY_DIMENSIONS = 136x128
4c9833
-IMOPS := -size $(BODY_DIMENSIONS) canvas:none -compose copy -gravity center
4c9833
+#IMOPS := -size $(BODY_DIMENSIONS) canvas:none -compose copy -gravity center
4c9833
+IMOPS = -size 136x128 -background none -gravity center -extent 136x128 -compose copy
4c9833
 
4c9833
 # zopflipng is better (about 5-10%) but much slower.  it will be used if
4c9833
 # present.  pass ZOPFLIPNG= as an arg to make to use optipng instead.
4c9833
@@ -172,13 +173,13 @@ waveflag: waveflag.c
4c9833
 # imagemagick packaged with ubuntu trusty (6.7.7-10) by using -composite.
4c9833
 
4c9833
 $(EMOJI_DIR)/%.png: $(EMOJI_SRC_DIR)/%.png | $(EMOJI_DIR)
4c9833
-	@convert $(IMOPS) "$<" -composite "PNG32:$@"
4c9833
+	@gm convert $(IMOPS) "$<" "PNG32:$@"
4c9833
 
4c9833
 $(FLAGS_DIR)/%.png: $(FLAGS_SRC_DIR)/%.png ./waveflag $(PNGQUANT) | $(FLAGS_DIR)
4c9833
 	@./waveflag $(FLAGS_DIR)/ "$<"
4c9833
 
4c9833
 $(RESIZED_FLAGS_DIR)/%.png: $(FLAGS_DIR)/%.png | $(RESIZED_FLAGS_DIR)
4c9833
-	@convert $(IMOPS) "$<" -composite "PNG32:$@"
4c9833
+	@gm convert $(IMOPS) "$<" "PNG32:$@"
4c9833
 
4c9833
 flag-symlinks: $(RESIZED_FLAG_FILES) | $(RENAMED_FLAGS_DIR)
4c9833
 	@$(subst ^, ,                                  \