diff options
author | Max Christian Pohle | 2015-08-08 01:23:29 +0200 |
---|---|---|
committer | Max Christian Pohle | 2015-08-08 01:23:29 +0200 |
commit | dfaf0d719188cbcb1adb0bf99ff709c3a8e2daa2 (patch) | |
tree | 21c6967702651547fb9ae183632ddaaae1be3b5d /scalable | |
parent | 2b874f70c132f2da183f132c01ca9aa1ab8086e6 (diff) | |
download | icons-dfaf0d719188cbcb1adb0bf99ff709c3a8e2daa2.tar.bz2 icons-dfaf0d719188cbcb1adb0bf99ff709c3a8e2daa2.zip |
added script to automatically generate icons for mimetypes
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 | ||