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
|
# 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/"}
|
||||||
|
if [[ $svg == "treehouse-icon-wordmark.svg" ]] || [[ $svg == "treehouse-logo-full.svg" ]]; then
|
||||||
# resize
|
# resize
|
||||||
|
# create white background
|
||||||
convert ${svg_path} \
|
convert ${svg_path} \
|
||||||
-resize ${WIDTH}x${WIDTH} \
|
-resize ${WIDTH}x${WIDTH} \
|
||||||
$TEMP/resized-${svg%.svg}.png
|
$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
|
||||||
|
|
Loading…
Reference in New Issue