aboutsummaryrefslogtreecommitdiff
path: root/scalable/mimetypes
diff options
context:
space:
mode:
Diffstat (limited to 'scalable/mimetypes')
-rwxr-xr-xscalable/mimetypes/generate.sh8
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 @@
1IFS=':'
2while read A B
3do
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
8done < /usr/share/mime/globs
..