summaryrefslogtreecommitdiff
path: root/assets/images/polyguin.sh
diff options
context:
space:
mode:
authorZach van Rijn <me@zv.io>2021-07-14 12:46:31 -0500
committerZach van Rijn <me@zv.io>2021-07-14 12:46:31 -0500
commit4867a5c95e05920f54e2dd6ca2b9e3defe6317c1 (patch)
treed502bd2950480f1a4ba7e7e20a31c5dc36c62c5e /assets/images/polyguin.sh
parent89ded3edc42a5e63edbf277bb011d5f535a08baa (diff)
downloadsite-ng-4867a5c95e05920f54e2dd6ca2b9e3defe6317c1.tar.gz
site-ng-4867a5c95e05920f54e2dd6ca2b9e3defe6317c1.tar.bz2
site-ng-4867a5c95e05920f54e2dd6ca2b9e3defe6317c1.tar.xz
site-ng-4867a5c95e05920f54e2dd6ca2b9e3defe6317c1.zip
Add GitLab avatar and properly pad favicon output. Fix permissions.
Diffstat (limited to 'assets/images/polyguin.sh')
-rwxr-xr-xassets/images/polyguin.sh11
1 files changed, 10 insertions, 1 deletions
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