add branding
51
README.md
|
@ -1,27 +1,40 @@
|
||||||
# Treehouse Emoji
|
# Treehouse Emoji
|
||||||
|
|
||||||
![:agender_flag:](emoji/png/agender-flag.png?raw=true ":agender_flag:")
|
## Pride Set
|
||||||
![:aromantic_flag:](emoji/png/aromantic-flag.png?raw=true ":aromantic_flag:")
|
|
||||||
![:asexual_flag:](emoji/png/asexual-flag.png?raw=true ":asexual_flag:")
|
![:agender_flag:](pride/png/agender-flag.png?raw=true ":agender_flag:")
|
||||||
![:bigender_flag:](emoji/png/bigender-flag.png?raw=true ":bigender_flag:")
|
![:aromantic_flag:](pride/png/aromantic-flag.png?raw=true ":aromantic_flag:")
|
||||||
![:bisexual_flag:](emoji/png/bisexual-flag.png?raw=true ":bisexual_flag:")
|
![:asexual_flag:](pride/png/asexual-flag.png?raw=true ":asexual_flag:")
|
||||||
![:demisexual_flag:](emoji/png/demisexual-flag.png?raw=true ":demisexual_flag:")
|
![:bigender_flag:](pride/png/bigender-flag.png?raw=true ":bigender_flag:")
|
||||||
![:genderfluid_flag:](emoji/png/genderfluid-flag.png?raw=true ":genderfluid_flag:")
|
![:bisexual_flag:](pride/png/bisexual-flag.png?raw=true ":bisexual_flag:")
|
||||||
![:genderqueer_flag:](emoji/png/genderqueer-flag.png?raw=true ":genderqueer_flag:")
|
![:demisexual_flag:](pride/png/demisexual-flag.png?raw=true ":demisexual_flag:")
|
||||||
![:intersex_flag:](emoji/png/intersex-flag.png?raw=true ":intersex_flag:")
|
![:genderfluid_flag:](pride/png/genderfluid-flag.png?raw=true ":genderfluid_flag:")
|
||||||
![:lesbian_flag:](emoji/png/lesbian-flag.png?raw=true ":lesbian_flag:")
|
![:genderqueer_flag:](pride/png/genderqueer-flag.png?raw=true ":genderqueer_flag:")
|
||||||
![:lesbian2_flag:](emoji/png/lesbian2-flag.png?raw=true ":lesbian2_flag:")
|
![:intersex_flag:](pride/png/intersex-flag.png?raw=true ":intersex_flag:")
|
||||||
![:nonbinary_flag:](emoji/png/nonbinary-flag.png?raw=true ":nonbinary_flag:")
|
![:lesbian_flag:](pride/png/lesbian-flag.png?raw=true ":lesbian_flag:")
|
||||||
![:pansexual_flag:](emoji/png/pansexual-flag.png?raw=true ":pansexual_flag:")
|
![:lesbian2_flag:](pride/png/lesbian2-flag.png?raw=true ":lesbian2_flag:")
|
||||||
![:polyamory_flag:](emoji/png/polyamory-flag.png?raw=true ":polyamory_flag:")
|
![:nonbinary_flag:](pride/png/nonbinary-flag.png?raw=true ":nonbinary_flag:")
|
||||||
![:prorgress_flag:](emoji/png/progress-flag.png?raw=true ":progress_flag:")
|
![:pansexual_flag:](pride/png/pansexual-flag.png?raw=true ":pansexual_flag:")
|
||||||
![:prorgress2_flag:](emoji/png/progress2-flag.png?raw=true ":progress2_flag:")
|
![:polyamory_flag:](pride/png/polyamory-flag.png?raw=true ":polyamory_flag:")
|
||||||
![:rainbow_flag:](emoji/png/rainbow-flag.png?raw=true ":rainbow_flag:")
|
![:prorgress_flag:](pride/png/progress-flag.png?raw=true ":progress_flag:")
|
||||||
![:transgender_flag:](emoji/png/transgender-flag.png?raw=true ":transgender_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
|
## 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
|
## Attribution
|
||||||
|
|
||||||
|
|
After Width: | Height: | Size: 6.8 KiB |
After Width: | Height: | Size: 4.1 KiB |
After Width: | Height: | Size: 9.0 KiB |
After Width: | Height: | Size: 6.3 KiB |
|
@ -1,13 +1,14 @@
|
||||||
LENGTH=128
|
LENGTH=128
|
||||||
MARGIN=1
|
MARGIN=1
|
||||||
WIDTH=126
|
WIDTH=126
|
||||||
HEIGHT=84
|
HEIGHT=84 # flags
|
||||||
#ROUND=10
|
#ROUND=10
|
||||||
|
|
||||||
TEMP=`mktemp -d -p ""`
|
TEMP=`mktemp -d -p ""`
|
||||||
|
|
||||||
for svg_path in emoji/svg/*.svg; do
|
# pride flags
|
||||||
svg=${svg_path#"emoji/svg/"}
|
for svg_path in pride/svg/*.svg; do
|
||||||
|
svg=${svg_path#"pride/svg/"}
|
||||||
# resize
|
# resize
|
||||||
convert ${svg_path} \
|
convert ${svg_path} \
|
||||||
-resize ${WIDTH}x${HEIGHT} \
|
-resize ${WIDTH}x${HEIGHT} \
|
||||||
|
@ -29,11 +30,48 @@ for svg_path in emoji/svg/*.svg; do
|
||||||
-gravity center \
|
-gravity center \
|
||||||
$TEMP/margin-${svg%.svg}.png \
|
$TEMP/margin-${svg%.svg}.png \
|
||||||
-extent ${LENGTH}x${LENGTH} \
|
-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
|
echo ${svg%.svg} created
|
||||||
done
|
done
|
||||||
|
|
||||||
rm -rf $TEMP
|
rm -rf $TEMP
|
||||||
|
|
||||||
# fix and remove metadata
|
# 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 |