From dfaf0d719188cbcb1adb0bf99ff709c3a8e2daa2 Mon Sep 17 00:00:00 2001 From: Max Christian Pohle Date: Sat, 8 Aug 2015 01:23:29 +0200 Subject: added script to automatically generate icons for mimetypes --- scalable/mimetypes/generate.sh | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100755 scalable/mimetypes/generate.sh 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 @@ +IFS=':' +while read A B +do + FILE=${A/\//-} + TEXT=${B/\*\./} + printf "%s ---- %s\n" $FILE $TEXT + convert text-x-generic.png -gravity center -pointsize 70 -stroke '#444' -strokewidth 2 -annotate -15 "$TEXT" -fill '#ff0' -annotate -15 "$TEXT" output/$FILE.png +done < /usr/share/mime/globs -- cgit v1.2.3