Last change
on this file since 2655 was
2655,
checked in by mabarracus, 4 years ago
|
add resource icons
|
-
Property svn:executable set to
*
|
File size:
531 bytes
|
Line | |
---|
1 | #!/usr/bin/env python |
---|
2 | |
---|
3 | import subprocess |
---|
4 | import os |
---|
5 | import glob |
---|
6 | |
---|
7 | sizes=[16,22,24,32,48,64,96,256] |
---|
8 | |
---|
9 | dirs=["apps","categories","resources"] |
---|
10 | |
---|
11 | |
---|
12 | print "* Building lliurex icons..." |
---|
13 | for dir in dirs: |
---|
14 | DST_DIR="build/"+ dir + "/" |
---|
15 | for sz in sizes: |
---|
16 | tmp=DST_DIR+str(sz) |
---|
17 | if not os.path.exists(tmp): |
---|
18 | os.makedirs(tmp) |
---|
19 | |
---|
20 | for f in glob.glob("vibrancy-lliurex/"+dir+"/*.svg"): |
---|
21 | |
---|
22 | subprocess.Popen(["rsvg-convert","--width="+str(sz),"--height="+str(sz),"-o",tmp+"/"+os.path.basename(f).replace(".svg",".png"),f]) |
---|
23 | |
---|
24 | os.system("ls -la") |
---|
25 | |
---|
Note: See
TracBrowser
for help on using the repository browser.