summaryrefslogtreecommitdiffstats
path: root/src/pics/to_png.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/pics/to_png.py')
-rwxr-xr-xsrc/pics/to_png.py50
1 files changed, 50 insertions, 0 deletions
diff --git a/src/pics/to_png.py b/src/pics/to_png.py
new file mode 100755
index 0000000..5968fd1
--- /dev/null
+++ b/src/pics/to_png.py
@@ -0,0 +1,50 @@
+#!/usr/bin/python
+
+import os
+
+def convert(file, px):
+ new_file=file.replace('.svgz','.png').replace('.svg','.png').replace('hisc-','')
+ os.system('/usr/bin/inkscape -e hicolor/hi%s-%s -w %s -h %s %s' % (px, new_file, px, px, file))
+
+all_files=[
+'hisc-action-kdesvnaddrecursive.svgz',
+'hisc-action-kdesvnadd.svgz',
+'hisc-action-kdesvnblame.svgz',
+'hisc-action-kdesvncat.svgz',
+'hisc-action-kdesvncheckout.svgz',
+'hisc-action-kdesvncheckupdates.svgz',
+'hisc-action-kdesvncleanup.svgz',
+'hisc-action-kdesvncommit.svgz',
+'hisc-action-kdesvncopy.svgz',
+'hisc-action-kdesvndelete.svgz',
+'hisc-action-kdesvndiff.svgz',
+'hisc-action-kdesvnexport.svgz',
+'hisc-action-kdesvninfo.svgz',
+'hisc-action-kdesvnlock.svgz',
+'hisc-action-kdesvnlog.svgz',
+'hisc-action-kdesvnmerge.svgz',
+'hisc-action-kdesvnrelocate.svgz',
+'hisc-action-kdesvnswitch.svgz',
+'hisc-action-kdesvnunlock.svgz',
+'hisc-action-kdesvnupdate.svgz',
+'hisc-filesys-kdesvnadded.svgz',
+'hisc-filesys-kdesvnconflicted.svgz',
+'hisc-filesys-kdesvndeleted.svgz',
+'hisc-filesys-kdesvnlocked.svgz',
+'hisc-filesys-kdesvnmodified.svgz',
+'hisc-filesys-kdesvnupdates.svgz',
+'hisc-filesys-kdesvnneedlock.svgz',
+]
+
+i_sizes=[
+32,128,16,96,22,48,64]
+
+i_sizes.sort()
+
+for px in i_sizes:
+ os.system('mkdir -p hicolor/%sx%s/actions' % (px,px))
+ os.system('mkdir -p hicolor/%sx%s/filesystems' % (px,px))
+
+for file in all_files:
+ for px in i_sizes:
+ convert(file, px)