Sha256: 282a3f19fd5aa0fb624cf2afbc26c67ec3e7b58d95e342a7f570fd0e2bfe48ae

Contents?: true

Size: 456 Bytes

Versions: 12

Compression:

Stored size: 456 Bytes

Contents

require 'image_optim'

class ImageOptim
  class Gifsicle < Worker
    # Turn on interlacing (defaults to false)
    attr_reader :interlace

  private

    def parse_options(options)
      get_option!(options, :interlace, false){ |v| !!v }
    end

    def command_args(src, dst)
      args = %W[-o #{dst} -O3 --no-comments --no-names --same-delay --same-loopcount --no-warnings -- #{src}]
      args.unshift('-i') if interlace
      args
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
image_optim-0.6.0 lib/image_optim/workers/gifsicle.rb
image_optim-0.5.1 lib/image_optim/workers/gifsicle.rb
image_optim-0.5.0 lib/image_optim/workers/gifsicle.rb
image_optim-0.4.2 lib/image_optim/workers/gifsicle.rb
image_optim-0.4.1 lib/image_optim/workers/gifsicle.rb
image_optim-0.4.0 lib/image_optim/workers/gifsicle.rb
image_optim-0.3.2 lib/image_optim/workers/gifsicle.rb
image_optim-0.3.1 lib/image_optim/workers/gifsicle.rb
image_optim-0.3.0 lib/image_optim/workers/gifsicle.rb
image_optim-0.2.1 lib/image_optim/workers/gifsicle.rb
image_optim-0.2.0 lib/image_optim/workers/gifsicle.rb
image_optim-0.1.0 lib/image_optim/workers/gifsicle.rb