improve branding pngs
parent
91666f1ea9
commit
47f83d62aa
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 |
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue