From 4675c3a10fc35c23c01186faa7f7ccc6dd7d2e72 Mon Sep 17 00:00:00 2001 From: Simon C Date: Fri, 30 Jul 2021 23:04:52 +0200 Subject: [PATCH] feat: Used transparent background on favicon --- scripts/run | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/run b/scripts/run index 7880044..7da1298 100755 --- a/scripts/run +++ b/scripts/run @@ -77,11 +77,11 @@ favicons() { if [ -f "static/logo.png" ]; then echo "🔍 Génération des favicons à partir d'une image 512px" echo - convert static/logo.png -resize 48x48 -colors 16 \( -clone 0 -resize 16x16 -extent 16x16 \) \( -clone 0 -resize 32x32 -extent 32x32 \) \( -clone 0 -resize 48x48 -extent 48x48 \) -delete 0 static/favicon.ico + convert static/logo.png -background transparent -resize 48x48 -colors 16 \( -clone 0 -resize 16x16 -extent 16x16 \) \( -clone 0 -resize 32x32 -extent 32x32 \) \( -clone 0 -resize 48x48 -extent 48x48 \) -delete 0 static/favicon.ico elif [ -f "static/logo.svg" ]; then echo "🔍 Génération des favicons à partir d'une image SVG" echo - convert static/logo.svg -resize 48x48 -colors 16 \( -clone 0 -resize 16x16 -extent 16x16 \) \( -clone 0 -resize 32x32 -extent 32x32 \) \( -clone 0 -resize 48x48 -extent 48x48 \) -delete 0 static/favicon.ico + convert static/logo.svg -background transparent -resize 48x48 -colors 16 \( -clone 0 -resize 16x16 -extent 16x16 \) \( -clone 0 -resize 32x32 -extent 32x32 \) \( -clone 0 -resize 48x48 -extent 48x48 \) -delete 0 static/favicon.ico else echo "🚧 Il faut un fichier 'logo.svg' ou 'logo.png' dans le dossier static" fi