diff options
Diffstat (limited to 'scalable')
-rwxr-xr-x | scalable/mimetypes/generate.sh | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/scalable/mimetypes/generate.sh b/scalable/mimetypes/generate.sh new file mode 100755 index 0000000..d0c19c5 --- /dev/null +++ b/scalable/mimetypes/generate.sh | |||
@@ -0,0 +1,8 @@ | |||
1 | IFS=':' | ||
2 | while read A B | ||
3 | do | ||
4 | FILE=${A/\//-} | ||
5 | TEXT=${B/\*\./} | ||
6 | printf "%s ---- %s\n" $FILE $TEXT | ||
7 | convert text-x-generic.png -gravity center -pointsize 70 -stroke '#444' -strokewidth 2 -annotate -15 "$TEXT" -fill '#ff0' -annotate -15 "$TEXT" output/$FILE.png | ||
8 | done < /usr/share/mime/globs | ||