update README and convert script to comply with 9da35145f4

pull/4/head
fox 2022-11-17 11:27:38 -06:00
parent 9da35145f4
commit 94bce41a84
2 changed files with 26 additions and 36 deletions

View File

@ -2,39 +2,30 @@
## Pride Set ## Pride Set
![:agender_flag:](pride/png/agender-flag.png?raw=true ":agender_flag:") ![:agender_flag:](dist/pride/agender-flag.png?raw=true ":agender_flag:")
![:aromantic_flag:](pride/png/aromantic-flag.png?raw=true ":aromantic_flag:") ![:aromantic_flag:](dist/pride/aromantic-flag.png?raw=true ":aromantic_flag:")
![:asexual_flag:](pride/png/asexual-flag.png?raw=true ":asexual_flag:") ![:asexual_flag:](dist/pride/asexual-flag.png?raw=true ":asexual_flag:")
![:asexual2_flag:](pride/png/asexual2-flag.png?raw=true ":asexual2_flag:") ![:asexual2_flag:](dist/pride/asexual2-flag.png?raw=true ":asexual2_flag:")
![:bigender_flag:](pride/png/bigender-flag.png?raw=true ":bigender_flag:") ![:bigender_flag:](dist/pride/bigender-flag.png?raw=true ":bigender_flag:")
![:bisexual_flag:](pride/png/bisexual-flag.png?raw=true ":bisexual_flag:") ![:bisexual_flag:](dist/pride/bisexual-flag.png?raw=true ":bisexual_flag:")
![:demisexual_flag:](pride/png/demisexual-flag.png?raw=true ":demisexual_flag:") ![:demisexual_flag:](dist/pride/demisexual-flag.png?raw=true ":demisexual_flag:")
![:genderfluid_flag:](pride/png/genderfluid-flag.png?raw=true ":genderfluid_flag:") ![:genderfluid_flag:](dist/pride/genderfluid-flag.png?raw=true ":genderfluid_flag:")
![:genderqueer_flag:](pride/png/genderqueer-flag.png?raw=true ":genderqueer_flag:") ![:genderqueer_flag:](dist/pride/genderqueer-flag.png?raw=true ":genderqueer_flag:")
![:intersex_flag:](pride/png/intersex-flag.png?raw=true ":intersex_flag:") ![:intersex_flag:](dist/pride/intersex-flag.png?raw=true ":intersex_flag:")
![:lesbian_flag:](pride/png/lesbian-flag.png?raw=true ":lesbian_flag:") ![:lesbian_flag:](dist/pride/lesbian-flag.png?raw=true ":lesbian_flag:")
![:lesbian2_flag:](pride/png/lesbian2-flag.png?raw=true ":lesbian2_flag:") ![:lesbian2_flag:](dist/pride/lesbian2-flag.png?raw=true ":lesbian2_flag:")
![:nonbinary_flag:](pride/png/nonbinary-flag.png?raw=true ":nonbinary_flag:") ![:nonbinary_flag:](dist/pride/nonbinary-flag.png?raw=true ":nonbinary_flag:")
![:nonbinary2_flag:](pride/png/nonbinary2-flag.png?raw=true ":nonbinary2_flag:") ![:nonbinary2_flag:](dist/pride/nonbinary2-flag.png?raw=true ":nonbinary2_flag:")
![:pansexual_flag:](pride/png/pansexual-flag.png?raw=true ":pansexual_flag:") ![:pansexual_flag:](dist/pride/pansexual-flag.png?raw=true ":pansexual_flag:")
![:polyamory_flag:](pride/png/polyamory-flag.png?raw=true ":polyamory_flag:") ![:polyamory_flag:](dist/pride/polyamory-flag.png?raw=true ":polyamory_flag:")
![:prorgress_flag:](pride/png/progress-flag.png?raw=true ":progress_flag:") ![:prorgress_flag:](dist/pride/progress-flag.png?raw=true ":progress_flag:")
![:prorgress2_flag:](pride/png/progress2-flag.png?raw=true ":progress2_flag:") ![:prorgress2_flag:](dist/pride/progress2-flag.png?raw=true ":progress2_flag:")
![:rainbow_flag:](pride/png/rainbow-flag.png?raw=true ":rainbow_flag:") ![:rainbow_flag:](dist/pride/rainbow-flag.png?raw=true ":rainbow_flag:")
![:transgender_flag:](pride/png/transgender-flag.png?raw=true ":transgender_flag:") ![:transgender_flag:](dist/pride/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
Images from the Treehouse Emoji Pride set are published through the CC0 1.0 Universal (CC0 1.0) Public Domain Dedication. All images 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. All other files are under The 3-Clause BSD License.

View File

@ -3,13 +3,13 @@
LENGTH=128 LENGTH=128
MARGIN=1 MARGIN=1
WIDTH=126 WIDTH=126
HEIGHT=84 # flags HEIGHT=84
TEMP=`mktemp -d -p ""` TEMP=`mktemp -d -p ""`
# pride flags # pride flags
for svg_path in pride/svg/*.svg; do for svg_path in src/pride/*flag.svg; do
svg=${svg_path#"pride/svg/"} svg=${svg_path#"src/pride/"}
# resize # resize
convert ${svg_path} \ convert ${svg_path} \
-resize ${WIDTH}x${HEIGHT} \ -resize ${WIDTH}x${HEIGHT} \
@ -31,12 +31,11 @@ for svg_path in pride/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} \
./pride/png/${svg%.svg}.png ./dist/pride/${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 ./pride/png/* exiftool -all= -overwrite_original ./dist/pride/*
exiftool -all= -overwrite_original ./branding/png/*