]> git.ipfire.org Git - ipfire.org.git/blobdiff - Makefile.am
Fix dimensions of Apple touch icons
[ipfire.org.git] / Makefile.am
index 3b29eb03754e6b2d581a05706ffacf5b639e8580..b3e2d5584e6ee9499eb0685302a0875b5333d3b1 100644 (file)
@@ -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