improve branding pngs

main
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
for svg_path in branding/svg/*.svg; do
svg=${svg_path#"branding/svg/"}
# resize
convert ${svg_path} \
-resize ${WIDTH}x${WIDTH} \
$TEMP/resized-${svg%.svg}.png
if [[ $svg == "treehouse-icon-wordmark.svg" ]] || [[ $svg == "treehouse-logo-full.svg" ]]; then
# resize
# create white background
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" ]] \
|| [[ $svg == "treehouse-logo-full.svg" ]]; then
# round borders