Sha256: 56c2c4de185bdb6a374a5201ed9440a1be46d4e2666734d1d79aa4bbfcd7b8f2
Contents?: true
Size: 551 Bytes
Versions: 4
Compression:
Stored size: 551 Bytes
Contents
require 'image_optim/worker' class ImageOptim class Worker class Gifsicle < Worker # Turn on interlacing (defaults to false) attr_reader :interlace def optimize(src, dst) args = %W[-o #{dst} -O3 --no-comments --no-names --same-delay --same-loopcount --no-warnings -- #{src}] args.unshift('-i') if interlace execute(:gifsicle, *args) && optimized?(src, dst) end private def parse_options(options) get_option!(options, :interlace, false){ |v| !!v } end end end end
Version data entries
4 entries across 4 versions & 1 rubygems