module FIR::Parser::Pngcrush
Public Class Methods
crush_icon(uncrushed_icon_path, crushed_icon_path)
click to toggle source
# File lib/fir/util/parser/pngcrush.rb, line 17 def crush_icon uncrushed_icon_path, crushed_icon_path system("#{png_bin} -iphone #{uncrushed_icon_path} #{crushed_icon_path} &> /dev/null") end
png_bin()
click to toggle source
# File lib/fir/util/parser/pngcrush.rb, line 9 def png_bin @png_bin ||= File.expand_path('../bin/pngcrush', __FILE__) end
uncrush_icon(crushed_icon_path, uncrushed_icon_path)
click to toggle source
# File lib/fir/util/parser/pngcrush.rb, line 13 def uncrush_icon crushed_icon_path, uncrushed_icon_path system("#{png_bin} -revert-iphone-optimizations #{crushed_icon_path} #{uncrushed_icon_path} &> /dev/null") end