Changeset 6328


Ignore:
Timestamp:
Nov 16, 2017, 12:21:20 PM (2 years ago)
Author:
Juanma
Message:

add scalable size to build.py

Location:
vibrancy-colors/trunk/fuentes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • vibrancy-colors/trunk/fuentes/debian/changelog

    r6260 r6328  
     1vibrancy-colors-orange (0.3.8.19) xenial; urgency=medium
     2
     3  * Add scalable size to build.py
     4
     5 -- Juanma Navarro Mañez <juanma1980@gmail.com>  Thu, 16 Nov 2017 12:20:39 +0100
     6
    17vibrancy-colors-orange (0.3.8.18) xenial; urgency=medium
    28
  • vibrancy-colors/trunk/fuentes/vibrancy-lliurex/build.py

    r3871 r6328  
    55import glob
    66
    7 sizes=[16,22,24,32,48,64,96,256]
     7sizes=[16,22,24,32,48,64,96,256,'scalable']
    88
    99dirs=["apps","categories","mimetypes"]
     
    1919       
    2020                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])
     21                        if sz != 'scalable':
     22                                subprocess.Popen(["rsvg-convert","--width="+str(sz),"--height="+str(sz),"-o",tmp+"/"+os.path.basename(f).replace(".svg",".png"),f])
     23                        else:
     24                                os.system('cp ' + f + ' '+tmp)
    2325
    2426os.system("ls -la")
Note: See TracChangeset for help on using the changeset viewer.