Sha256: 34a4e72ab20b98f5a44b1ec082e4e529c56259cb2f60e5be1f9b196cee0c06e8

Contents?: true

Size: 338 Bytes

Versions: 72

Compression:

Stored size: 338 Bytes

Contents

# frozen_string_literal: true

module CarrierWave
  module MiniMagick
    # this method allow us to specify a quality for our image
    # e.g. <process quality: 60>
    def quality(percentage)
      manipulate! do |img|
        img.quality(percentage.to_s)
        img = yield(img) if block_given?
        img
      end
    end
  end
end

Version data entries

72 entries across 72 versions & 1 rubygems

Version Path
decidim-core-0.28.4 config/initializers/carrierwave.rb
decidim-core-0.27.9 config/initializers/carrierwave.rb
decidim-core-0.28.3 config/initializers/carrierwave.rb
decidim-core-0.27.8 config/initializers/carrierwave.rb
decidim-core-0.28.2 config/initializers/carrierwave.rb
decidim-core-0.27.7 config/initializers/carrierwave.rb
decidim-core-0.28.1 config/initializers/carrierwave.rb
decidim-core-0.27.6 config/initializers/carrierwave.rb
decidim-core-0.26.10 config/initializers/carrierwave.rb
decidim-core-0.26.9 config/initializers/carrierwave.rb
decidim-core-0.28.0 config/initializers/carrierwave.rb
decidim-core-0.27.5 config/initializers/carrierwave.rb
decidim-core-0.28.0.rc5 config/initializers/carrierwave.rb
decidim-core-0.28.0.rc4 config/initializers/carrierwave.rb
decidim-core-0.26.8 config/initializers/carrierwave.rb
decidim-core-0.27.4 config/initializers/carrierwave.rb
decidim-core-0.27.3 config/initializers/carrierwave.rb
decidim-core-0.26.7 config/initializers/carrierwave.rb
decidim-core-0.26.5 config/initializers/carrierwave.rb
decidim-core-0.27.2 config/initializers/carrierwave.rb