Class: ImageOptim::Worker::Svgo

Inherits:
ImageOptim::Worker show all
Defined in:
lib/image_optim/worker/svgo.rb

Instance Method Summary collapse

Methods inherited from ImageOptim::Worker

#<=>, bin_sym, #image_formats, inherited, #initialize, klasses, #optimized?, option, option_definitions, #run_order

Constructor Details

This class inherits a constructor from ImageOptim::Worker

Instance Method Details

#optimize(src, dst) ⇒ Object



6
7
8
9
# File 'lib/image_optim/worker/svgo.rb', line 6

def optimize(src, dst)
  args = %W[-i #{src} -o #{dst}]
  execute(:svgo, *args) && optimized?(src, dst)
end