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

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