Last change
on this file since 2657 was
2657,
checked in by mabarracus, 4 years ago
|
Moved resource icons category
|
-
Property svn:executable set to
*
|
File size:
519 bytes
|
Rev | Line | |
---|
[2314] | 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 | |
---|
[2657] | 9 | dirs=["apps","categories"] |
---|
[2314] | 10 | |
---|
| 11 | |
---|
[2317] | 12 | print "* Building lliurex icons..." |
---|
[2314] | 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 | |
---|
[2317] | 20 | for f in glob.glob("vibrancy-lliurex/"+dir+"/*.svg"): |
---|
[2314] | 21 | |
---|
| 22 | subprocess.Popen(["rsvg-convert","--width="+str(sz),"--height="+str(sz),"-o",tmp+"/"+os.path.basename(f).replace(".svg",".png"),f]) |
---|
[2317] | 23 | |
---|
| 24 | os.system("ls -la") |
---|
| 25 | |
---|
Note: See
TracBrowser
for help on using the repository browser.