From: Michael Tremer Date: Thu, 30 May 2019 17:46:21 +0000 (+0100) Subject: Fix dimensions of Apple touch icons X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9d9dcc2459d8e82f4187b658a2f49e73b2f36890;p=ipfire.org.git Fix dimensions of Apple touch icons Signed-off-by: Michael Tremer --- diff --git a/Makefile.am b/Makefile.am index 3b29eb03..b3e2d558 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1006,7 +1006,9 @@ src/static/favicon.ico: src/static/img/ipfire-tux.png Makefile src/static/img/apple-touch-icon-%-precomposed.png: src/static/img/ipfire-tux.png Makefile $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \ $(CONVERT) -background none -flatten -density 1200 -bordercolor none -border 5%x5% \ - -resize $(patsubst src/static/img/apple-touch-icon-%-precomposed.png,%,$@) $< $@ + -resize $(patsubst src/static/img/apple-touch-icon-%-precomposed.png,%,$@) -gravity center \ + -extent $(patsubst src/static/img/apple-touch-icon-%-precomposed.png,%,$@)x$(patsubst src/static/img/apple-touch-icon-%-precomposed.png,%,$@) \ + $< $@ # Docker .PHONY: docker