add branding

pull/4/head
fox 2022-11-15 00:20:18 -06:00
parent 8f3195088d
commit 91666f1ea9
43 changed files with 75 additions and 24 deletions

0
.gitmodules vendored Normal file
View File

View File

@ -1,27 +1,40 @@
# Treehouse Emoji
![:agender_flag:](emoji/png/agender-flag.png?raw=true ":agender_flag:")
![:aromantic_flag:](emoji/png/aromantic-flag.png?raw=true ":aromantic_flag:")
![:asexual_flag:](emoji/png/asexual-flag.png?raw=true ":asexual_flag:")
![:bigender_flag:](emoji/png/bigender-flag.png?raw=true ":bigender_flag:")
![:bisexual_flag:](emoji/png/bisexual-flag.png?raw=true ":bisexual_flag:")
![:demisexual_flag:](emoji/png/demisexual-flag.png?raw=true ":demisexual_flag:")
![:genderfluid_flag:](emoji/png/genderfluid-flag.png?raw=true ":genderfluid_flag:")
![:genderqueer_flag:](emoji/png/genderqueer-flag.png?raw=true ":genderqueer_flag:")
![:intersex_flag:](emoji/png/intersex-flag.png?raw=true ":intersex_flag:")
![:lesbian_flag:](emoji/png/lesbian-flag.png?raw=true ":lesbian_flag:")
![:lesbian2_flag:](emoji/png/lesbian2-flag.png?raw=true ":lesbian2_flag:")
![:nonbinary_flag:](emoji/png/nonbinary-flag.png?raw=true ":nonbinary_flag:")
![:pansexual_flag:](emoji/png/pansexual-flag.png?raw=true ":pansexual_flag:")
![:polyamory_flag:](emoji/png/polyamory-flag.png?raw=true ":polyamory_flag:")
![:prorgress_flag:](emoji/png/progress-flag.png?raw=true ":progress_flag:")
![:prorgress2_flag:](emoji/png/progress2-flag.png?raw=true ":progress2_flag:")
![:rainbow_flag:](emoji/png/rainbow-flag.png?raw=true ":rainbow_flag:")
![:transgender_flag:](emoji/png/transgender-flag.png?raw=true ":transgender_flag:")
## Pride Set
![:agender_flag:](pride/png/agender-flag.png?raw=true ":agender_flag:")
![:aromantic_flag:](pride/png/aromantic-flag.png?raw=true ":aromantic_flag:")
![:asexual_flag:](pride/png/asexual-flag.png?raw=true ":asexual_flag:")
![:bigender_flag:](pride/png/bigender-flag.png?raw=true ":bigender_flag:")
![:bisexual_flag:](pride/png/bisexual-flag.png?raw=true ":bisexual_flag:")
![:demisexual_flag:](pride/png/demisexual-flag.png?raw=true ":demisexual_flag:")
![:genderfluid_flag:](pride/png/genderfluid-flag.png?raw=true ":genderfluid_flag:")
![:genderqueer_flag:](pride/png/genderqueer-flag.png?raw=true ":genderqueer_flag:")
![:intersex_flag:](pride/png/intersex-flag.png?raw=true ":intersex_flag:")
![:lesbian_flag:](pride/png/lesbian-flag.png?raw=true ":lesbian_flag:")
![:lesbian2_flag:](pride/png/lesbian2-flag.png?raw=true ":lesbian2_flag:")
![:nonbinary_flag:](pride/png/nonbinary-flag.png?raw=true ":nonbinary_flag:")
![:pansexual_flag:](pride/png/pansexual-flag.png?raw=true ":pansexual_flag:")
![:polyamory_flag:](pride/png/polyamory-flag.png?raw=true ":polyamory_flag:")
![:prorgress_flag:](pride/png/progress-flag.png?raw=true ":progress_flag:")
![:prorgress2_flag:](pride/png/progress2-flag.png?raw=true ":progress2_flag:")
![:rainbow_flag:](pride/png/rainbow-flag.png?raw=true ":rainbow_flag:")
![:transgender_flag:](pride/png/transgender-flag.png?raw=true ":transgender_flag:")
## Branding
![:treehouse_icon:](branding/png/treehouse-icon.png?raw=true ":treehouse_icon:")
![:treehouse_icon2:](branding/png/treehouse-icon-small.png?raw=true ":treehouse_icon2:")
![:treehouse_wordmark:](branding/png/treehouse-icon-wordmark.png?raw=true ":treehouse_wordmark:")
![:treehouse_logo:](branding/png/treehouse-logo-full.png?raw=true ":treehouse_logo:")
## Licenses
All Treehouse Emoji images have no copywrite and are published through the CC0 1.0 Universal (CC0 1.0) Public Domain Dedication. All other files are under The 3-Clause BSD License.
Images from the Treehouse Emoji Pride set are published through the CC0 1.0 Universal (CC0 1.0) Public Domain Dedication.
All rights are reserved for images in the Treehouse Emoji Treehouse set.
All other files are under The 3-Clause BSD License.
## Attribution

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.3 KiB

View File

@ -1,13 +1,14 @@
LENGTH=128
MARGIN=1
WIDTH=126
HEIGHT=84
HEIGHT=84 # flags
#ROUND=10
TEMP=`mktemp -d -p ""`
for svg_path in emoji/svg/*.svg; do
svg=${svg_path#"emoji/svg/"}
# pride flags
for svg_path in pride/svg/*.svg; do
svg=${svg_path#"pride/svg/"}
# resize
convert ${svg_path} \
-resize ${WIDTH}x${HEIGHT} \
@ -29,11 +30,48 @@ for svg_path in emoji/svg/*.svg; do
-gravity center \
$TEMP/margin-${svg%.svg}.png \
-extent ${LENGTH}x${LENGTH} \
./emoji/png/${svg%.svg}.png
./pride/png/${svg%.svg}.png
echo ${svg%.svg} created
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
# round borders
magick $TEMP/resized-${svg%.svg}.png \
\( +clone -alpha extract \
-draw \
'fill black polygon 0,0 0,10 10,0 fill white circle 10,10 10,0' \
\( +clone -flip \) -compose Multiply -composite \
\( +clone -flop \) -compose Multiply -composite \
\) -alpha off -compose CopyOpacity -composite \
$TEMP/rounded-${svg%.svg}.png
else
# already rounded
cp $TEMP/resized-${svg%.svg}.png $TEMP/rounded-${svg%.svg}.png
fi
# add margin
convert $TEMP/rounded-${svg%.svg}.png \
-bordercolor transparent \
-border ${MARGIN} \
$TEMP/margin-${svg%.svg}.png
# make square
convert -background transparent \
-gravity center \
$TEMP/margin-${svg%.svg}.png \
-extent ${LENGTH}x${LENGTH} \
./branding/png/${svg%.svg}.png
echo ${svg%.svg} created
done
rm -rf $TEMP
# fix and remove metadata
exiftool -all= -overwrite_original ./emoji/png/*
exiftool -all= -overwrite_original ./pride/png/*
exiftool -all= -overwrite_original ./branding/png/*

View File

Before

Width:  |  Height:  |  Size: 523 B

After

Width:  |  Height:  |  Size: 523 B

View File

Before

Width:  |  Height:  |  Size: 611 B

After

Width:  |  Height:  |  Size: 611 B

View File

Before

Width:  |  Height:  |  Size: 604 B

After

Width:  |  Height:  |  Size: 604 B

View File

Before

Width:  |  Height:  |  Size: 611 B

After

Width:  |  Height:  |  Size: 611 B

View File

Before

Width:  |  Height:  |  Size: 542 B

After

Width:  |  Height:  |  Size: 542 B

View File

Before

Width:  |  Height:  |  Size: 1.6 KiB

After

Width:  |  Height:  |  Size: 1.6 KiB

View File

Before

Width:  |  Height:  |  Size: 611 B

After

Width:  |  Height:  |  Size: 611 B

View File

Before

Width:  |  Height:  |  Size: 569 B

After

Width:  |  Height:  |  Size: 569 B

View File

Before

Width:  |  Height:  |  Size: 1.6 KiB

After

Width:  |  Height:  |  Size: 1.6 KiB

View File

Before

Width:  |  Height:  |  Size: 608 B

After

Width:  |  Height:  |  Size: 608 B

View File

Before

Width:  |  Height:  |  Size: 651 B

After

Width:  |  Height:  |  Size: 651 B

View File

Before

Width:  |  Height:  |  Size: 604 B

After

Width:  |  Height:  |  Size: 604 B

View File

Before

Width:  |  Height:  |  Size: 562 B

After

Width:  |  Height:  |  Size: 562 B

View File

Before

Width:  |  Height:  |  Size: 1.3 KiB

After

Width:  |  Height:  |  Size: 1.3 KiB

View File

Before

Width:  |  Height:  |  Size: 6.6 KiB

After

Width:  |  Height:  |  Size: 6.6 KiB

View File

Before

Width:  |  Height:  |  Size: 3.4 KiB

After

Width:  |  Height:  |  Size: 3.4 KiB

View File

Before

Width:  |  Height:  |  Size: 649 B

After

Width:  |  Height:  |  Size: 649 B

View File

Before

Width:  |  Height:  |  Size: 475 B

After

Width:  |  Height:  |  Size: 475 B

View File

Before

Width:  |  Height:  |  Size: 293 B

After

Width:  |  Height:  |  Size: 293 B

View File

Before

Width:  |  Height:  |  Size: 342 B

After

Width:  |  Height:  |  Size: 342 B

View File

Before

Width:  |  Height:  |  Size: 295 B

After

Width:  |  Height:  |  Size: 295 B

View File

Before

Width:  |  Height:  |  Size: 383 B

After

Width:  |  Height:  |  Size: 383 B

View File

Before

Width:  |  Height:  |  Size: 248 B

After

Width:  |  Height:  |  Size: 248 B

View File

Before

Width:  |  Height:  |  Size: 289 B

After

Width:  |  Height:  |  Size: 289 B

View File

Before

Width:  |  Height:  |  Size: 342 B

After

Width:  |  Height:  |  Size: 342 B

View File

Before

Width:  |  Height:  |  Size: 248 B

After

Width:  |  Height:  |  Size: 248 B

View File

Before

Width:  |  Height:  |  Size: 239 B

After

Width:  |  Height:  |  Size: 239 B

View File

Before

Width:  |  Height:  |  Size: 342 B

After

Width:  |  Height:  |  Size: 342 B

View File

Before

Width:  |  Height:  |  Size: 428 B

After

Width:  |  Height:  |  Size: 428 B

View File

Before

Width:  |  Height:  |  Size: 295 B

After

Width:  |  Height:  |  Size: 295 B

View File

Before

Width:  |  Height:  |  Size: 248 B

After

Width:  |  Height:  |  Size: 248 B

View File

Before

Width:  |  Height:  |  Size: 866 B

After

Width:  |  Height:  |  Size: 866 B

View File

Before

Width:  |  Height:  |  Size: 845 B

After

Width:  |  Height:  |  Size: 845 B

View File

Before

Width:  |  Height:  |  Size: 693 B

After

Width:  |  Height:  |  Size: 693 B

View File

Before

Width:  |  Height:  |  Size: 389 B

After

Width:  |  Height:  |  Size: 389 B

View File

Before

Width:  |  Height:  |  Size: 246 B

After

Width:  |  Height:  |  Size: 246 B