Sha256: 79ead83bfef2cb79ec9881d70b18a2d46c8f81fb887d63d4272fe62dae619bdd

Contents?: true

Size: 562 Bytes

Versions: 3

Compression:

Stored size: 562 Bytes

Contents

# encoding: utf-8

require 'sprockets/webp/version'
require 'sprockets/webp/railtie' if defined?(Rails)

module Sprockets
  module WebP
    # configure web encode options
    #
    # Sprockets::WebP.encode_options = { quality: 100, lossless: 1, method: 6, alpha_filtering: 2, alpha_compression: 0, alpha_quality: 100 }
    #
    class << self
      attr_writer :encode_options

      def encode_options
        @encode_options ||= { quality: 100, lossless: 1, method: 6, alpha_filtering: 2, alpha_compression: 0, alpha_quality: 100 }
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
sprockets-webp-exporter-0.1.0.rc3 lib/sprockets-webp-exporter.rb
sprockets-webp-exporter-0.1.0.rc2 lib/sprockets-webp-exporter.rb
sprockets-webp-exporter-0.1.0.rc1 lib/sprockets-webp-exporter.rb