add branding

pull/4/head
fox 2 months ago
parent 8f3195088d
commit 91666f1ea9
  1. 0
      .gitmodules
  2. 51
      README.md
  3. BIN
      branding/png/treehouse-icon-small.png
  4. BIN
      branding/png/treehouse-icon-wordmark.png
  5. BIN
      branding/png/treehouse-icon.png
  6. BIN
      branding/png/treehouse-logo-full.png
  7. 48
      emoji-convert.sh
  8. 0
      pride/png/agender-flag.png
  9. 0
      pride/png/aromantic-flag.png
  10. 0
      pride/png/asexual-flag.png
  11. 0
      pride/png/bigender-flag.png
  12. 0
      pride/png/bisexual-flag.png
  13. 0
      pride/png/demisexual-flag.png
  14. 0
      pride/png/genderfluid-flag.png
  15. 0
      pride/png/genderqueer-flag.png
  16. 0
      pride/png/intersex-flag.png
  17. 0
      pride/png/lesbian-flag.png
  18. 0
      pride/png/lesbian2-flag.png
  19. 0
      pride/png/nonbinary-flag.png
  20. 0
      pride/png/pansexual-flag.png
  21. 0
      pride/png/polyamory-flag.png
  22. 0
      pride/png/progress-flag.png
  23. 0
      pride/png/progress2-flag.png
  24. 0
      pride/png/rainbow-flag.png
  25. 0
      pride/png/transgender-flag.png
  26. 0
      pride/svg/agender-flag.svg
  27. 0
      pride/svg/aromantic-flag.svg
  28. 0
      pride/svg/asexual-flag.svg
  29. 0
      pride/svg/bigender-flag.svg
  30. 0
      pride/svg/bisexual-flag.svg
  31. 0
      pride/svg/demisexual-flag.svg
  32. 0
      pride/svg/genderfluid-flag.svg
  33. 0
      pride/svg/genderqueer-flag.svg
  34. 0
      pride/svg/intersex-flag.svg
  35. 0
      pride/svg/lesbian-flag.svg
  36. 0
      pride/svg/lesbian2-flag.svg
  37. 0
      pride/svg/nonbinary-flag.svg
  38. 0
      pride/svg/pansexual-flag.svg
  39. 0
      pride/svg/polyamory-flag.svg
  40. 0
      pride/svg/progress-flag.svg
  41. 0
      pride/svg/progress2-flag.svg
  42. 0
      pride/svg/rainbow-flag.svg
  43. 0
      pride/svg/transgender-flag.svg

@ -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

@ -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/*

Before

Width:  |  Height:  |  Size: 523 B

After

Width:  |  Height:  |  Size: 523 B

Before

Width:  |  Height:  |  Size: 611 B

After

Width:  |  Height:  |  Size: 611 B

Before

Width:  |  Height:  |  Size: 604 B

After

Width:  |  Height:  |  Size: 604 B

Before

Width:  |  Height:  |  Size: 611 B

After

Width:  |  Height:  |  Size: 611 B

Before

Width:  |  Height:  |  Size: 542 B

After

Width:  |  Height:  |  Size: 542 B

Before

Width:  |  Height:  |  Size: 1.6 KiB

After

Width:  |  Height:  |  Size: 1.6 KiB

Before

Width:  |  Height:  |  Size: 611 B

After

Width:  |  Height:  |  Size: 611 B

Before

Width:  |  Height:  |  Size: 569 B

After

Width:  |  Height:  |  Size: 569 B

Before

Width:  |  Height:  |  Size: 1.6 KiB

After

Width:  |  Height:  |  Size: 1.6 KiB

Before

Width:  |  Height:  |  Size: 608 B

After

Width:  |  Height:  |  Size: 608 B

Before

Width:  |  Height:  |  Size: 651 B

After

Width:  |  Height:  |  Size: 651 B

Before

Width:  |  Height:  |  Size: 604 B

After

Width:  |  Height:  |  Size: 604 B

Before

Width:  |  Height:  |  Size: 562 B

After

Width:  |  Height:  |  Size: 562 B

Before

Width:  |  Height:  |  Size: 1.3 KiB

After

Width:  |  Height:  |  Size: 1.3 KiB

Before

Width:  |  Height:  |  Size: 6.6 KiB

After

Width:  |  Height:  |  Size: 6.6 KiB

Before

Width:  |  Height:  |  Size: 3.4 KiB

After

Width:  |  Height:  |  Size: 3.4 KiB

Before

Width:  |  Height:  |  Size: 649 B

After

Width:  |  Height:  |  Size: 649 B

Before

Width:  |  Height:  |  Size: 475 B

After

Width:  |  Height:  |  Size: 475 B

Before

Width:  |  Height:  |  Size: 293 B

After

Width:  |  Height:  |  Size: 293 B

Before

Width:  |  Height:  |  Size: 342 B

After

Width:  |  Height:  |  Size: 342 B

Before

Width:  |  Height:  |  Size: 295 B

After

Width:  |  Height:  |  Size: 295 B

Before

Width:  |  Height:  |  Size: 383 B

After

Width:  |  Height:  |  Size: 383 B

Before

Width:  |  Height:  |  Size: 248 B

After

Width:  |  Height:  |  Size: 248 B

Before

Width:  |  Height:  |  Size: 289 B

After

Width:  |  Height:  |  Size: 289 B

Before

Width:  |  Height:  |  Size: 342 B

After

Width:  |  Height:  |  Size: 342 B

Before

Width:  |  Height:  |  Size: 248 B

After

Width:  |  Height:  |  Size: 248 B

Before

Width:  |  Height:  |  Size: 239 B

After

Width:  |  Height:  |  Size: 239 B

Before

Width:  |  Height:  |  Size: 342 B

After

Width:  |  Height:  |  Size: 342 B

Before

Width:  |  Height:  |  Size: 428 B

After

Width:  |  Height:  |  Size: 428 B

Before

Width:  |  Height:  |  Size: 295 B

After

Width:  |  Height:  |  Size: 295 B

Before

Width:  |  Height:  |  Size: 248 B

After

Width:  |  Height:  |  Size: 248 B

Before

Width:  |  Height:  |  Size: 866 B

After

Width:  |  Height:  |  Size: 866 B

Before

Width:  |  Height:  |  Size: 845 B

After

Width:  |  Height:  |  Size: 845 B

Before

Width:  |  Height:  |  Size: 693 B

After

Width:  |  Height:  |  Size: 693 B

Before

Width:  |  Height:  |  Size: 389 B

After

Width:  |  Height:  |  Size: 389 B

Before

Width:  |  Height:  |  Size: 246 B

After

Width:  |  Height:  |  Size: 246 B

Loading…
Cancel
Save