From 4867a5c95e05920f54e2dd6ca2b9e3defe6317c1 Mon Sep 17 00:00:00 2001 From: Zach van Rijn Date: Wed, 14 Jul 2021 12:46:31 -0500 Subject: Add GitLab avatar and properly pad favicon output. Fix permissions. --- assets/images/polyguin.sh | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'assets') diff --git a/assets/images/polyguin.sh b/assets/images/polyguin.sh index 0e8ac2b..2861a6b 100755 --- a/assets/images/polyguin.sh +++ b/assets/images/polyguin.sh @@ -173,8 +173,17 @@ done # r # 32x32 is GitLab # Website uses native SVG # -magick convert -background none -resize 32x32 polyguin_color.svg icons/gen_polyguin_color_favicon.ico; +magick convert -background none -gravity center -resize 32x32 -extent 32x32 polyguin_color.svg icons/gen_polyguin_color_favicon.ico; +chown 1000:1000 icons/gen_polyguin_color_favicon.ico; +#--------------------------------------------------------------- +# Other custom outputs. + +## +# GitLab group/project avatar is 96x96 square. MUST be square. +# +magick convert -background none -gravity center -resize 96x96 -extent 96x96 polyguin_color.svg gen_polyguin_color_avatar.png; +chown 1000:1000 gen_polyguin_color_avatar.png; #=============================================================== EOF -- cgit v1.2.3-70-g09d2