add branding
51
README.md
|
@ -1,27 +1,40 @@
|
||||||
# Treehouse Emoji
|
# Treehouse Emoji
|
||||||
|
|
||||||

|
## Pride Set
|
||||||

|
|
||||||

|

|
||||||

|

|
||||||

|

|
||||||

|

|
||||||

|

|
||||||

|

|
||||||

|

|
||||||

|

|
||||||

|

|
||||||

|

|
||||||

|

|
||||||

|

|
||||||

|

|
||||||

|

|
||||||

|

|
||||||

|

|
||||||
|

|
||||||
|

|
||||||
|
|
||||||
|
## Branding
|
||||||
|
|
||||||
|

|
||||||
|

|
||||||
|

|
||||||
|

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