feat: Used transparent background on favicon

This commit is contained in:
Simon 2021-07-30 23:04:52 +02:00
parent 04b6bd0203
commit 4675c3a10f
1 changed files with 2 additions and 2 deletions

View File

@ -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