class ImageParadise::ToPng
Public Class Methods
Public Instance Methods
input?()
click to toggle source
reset()
click to toggle source
run()
click to toggle source
run_everything()
click to toggle source
#¶ ↑
run_everything
¶ ↑
This method contains the main logic of the file.
#¶ ↑
# File lib/image_paradise/toplevel_methods/to_png.rb, line 63 def run_everything @input.each {|this_file| store_where = store_where?(this_file) opn; e 'Next converting '+simp(this_file)+' to '+sfile(store_where) _ = 'convert '+this_file+' '+store_where esystem _ if File.exist? store_where opn; e 'We will next try to optimize '+sfile(store_where) opn; e 'The old file size is: '+sfancy(File.size(store_where).to_s) ::ImageParadise::Optimizer[store_where] opn; e 'The new file size is: '+sfancy(File.size(store_where).to_s) end } end
set_input(i = '')
click to toggle source