improve branding pngs

pull/4/head
fox 2022-11-15 00:50:35 -06:00
parent 91666f1ea9
commit 47f83d62aa
4 changed files with 14 additions and 4 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.8 KiB

After

Width:  |  Height:  |  Size: 6.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.0 KiB

After

Width:  |  Height:  |  Size: 8.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.3 KiB

After

Width:  |  Height:  |  Size: 5.1 KiB

View File

@ -37,10 +37,20 @@ done
# branding # branding
for svg_path in branding/svg/*.svg; do for svg_path in branding/svg/*.svg; do
svg=${svg_path#"branding/svg/"} svg=${svg_path#"branding/svg/"}
# resize if [[ $svg == "treehouse-icon-wordmark.svg" ]] || [[ $svg == "treehouse-logo-full.svg" ]]; then
convert ${svg_path} \ # resize
-resize ${WIDTH}x${WIDTH} \ # create white background
$TEMP/resized-${svg%.svg}.png convert ${svg_path} \
-resize ${WIDTH}x${WIDTH} \
$TEMP/resized-${svg%.svg}.png
else
# resize
# creates clear background
convert -background none \
${svg_path} \
-resize ${WIDTH}x${WIDTH} \
$TEMP/resized-${svg%.svg}.png
fi
if [[ $svg == "treehouse-icon-wordmark.svg" ]] \ if [[ $svg == "treehouse-icon-wordmark.svg" ]] \
|| [[ $svg == "treehouse-logo-full.svg" ]]; then || [[ $svg == "treehouse-logo-full.svg" ]]; then
# round borders # round borders