Class: ImageOptim::Worker::Pngout
- Inherits:
-
ImageOptim::Worker
- Object
- ImageOptim::Worker
- ImageOptim::Worker::Pngout
- Defined in:
- lib/image_optim/worker/pngout.rb
Instance Method Summary collapse
- #optimize(src, dst) ⇒ Object
-
#run_order ⇒ Object
Always run first.
Methods inherited from ImageOptim::Worker
#<=>, bin_sym, #image_formats, inherited, #initialize, klasses, #optimized?, option, option_definitions
Constructor Details
This class inherits a constructor from ImageOptim::Worker
Instance Method Details
#optimize(src, dst) ⇒ Object
18 19 20 21 |
# File 'lib/image_optim/worker/pngout.rb', line 18 def optimize(src, dst) args = %W[-k#{copy_chunks ? 1 : 0} -s#{strategy} -q -y #{src} #{dst}] execute(:pngout, *args) && optimized?(src, dst) end |
#run_order ⇒ Object
Always run first
14 15 16 |
# File 'lib/image_optim/worker/pngout.rb', line 14 def run_order -1 end |