diff options
author | elijah <elijah@riseup.net> | 2013-01-26 01:01:05 -0800 |
---|---|---|
committer | elijah <elijah@riseup.net> | 2013-01-26 01:01:05 -0800 |
commit | e9363e405a24e1b167cb4608640470d3687a23f7 (patch) | |
tree | 5e5acb3979b2a78bacc295e441c96c26461b6bbb /Rakefile | |
parent | 05d23f34073d09e31bc7fc2a0b72023e1dccd00d (diff) |
added leap-small.png
Diffstat (limited to 'Rakefile')
-rw-r--r-- | Rakefile | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -70,7 +70,8 @@ svg_to_png = [ ['svg/status/light/*.svg', status_light_icon_target], ['svg/qt/dark/*.svg', qt_dark_icon_target], ['svg/qt/light/*.svg', qt_light_icon_target], - ['svg/android/leap-launcher.svg', {:size => 128, :dest => 'mac/leap-128x128.png'}] + ['svg/android/leap-launcher.svg', {:size => 128, :dest => 'mac/leap-128x128.png'}], + ['svg/kid-jumping.svg', {:width => 128, :dest => 'qt/leap-small.png'}] ] png_to_icns = [ @@ -104,8 +105,9 @@ def render_svg_to_png(source, targets) height = target[:height] width = target[:width] end - options = ["--file=#{src_file}", "--export-png=#{dest_file}", "-w #{width}", "-h #{height}", - "--export-background=0xffffff", "--export-background-opacity=0x00"] + options = ["--file=#{src_file}", "--export-png=#{dest_file}", "--export-background=0xffffff", "--export-background-opacity=0x00"] + options << "-w #{width}" if width + options << "-h #{height}" if height options << "--export-dpi=#{target[:dpi]}" if target[:dpi] run("inkscape #{options.join ' '}") run("optipng #{dest_file}") |