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.27.1 config/initializers/carrierwave.rb
decidim-core-0.26.4 config/initializers/carrierwave.rb
decidim-core-0.27.0 config/initializers/carrierwave.rb
decidim-core-0.26.3 config/initializers/carrierwave.rb
decidim-core-0.27.0.rc2 config/initializers/carrierwave.rb
decidim-core-0.27.0.rc1 config/initializers/carrierwave.rb
decidim-core-0.26.2 config/initializers/carrierwave.rb
decidim-core-0.26.1 config/initializers/carrierwave.rb
decidim-core-0.26.0 config/initializers/carrierwave.rb
decidim-core-0.26.0.rc2 config/initializers/carrierwave.rb
decidim-core-0.26.0.rc1 config/initializers/carrierwave.rb
decidim-core-0.25.2 config/initializers/carrierwave.rb
decidim-core-0.25.1 config/initializers/carrierwave.rb
decidim-core-0.25.0 config/initializers/carrierwave.rb
decidim-core-0.25.0.rc4 config/initializers/carrierwave.rb
decidim-core-0.25.0.rc3 config/initializers/carrierwave.rb
decidim-core-0.25.0.rc2 config/initializers/carrierwave.rb
decidim-core-0.25.0.rc1 config/initializers/carrierwave.rb
decidim-core-0.24.3 config/initializers/carrierwave.rb
decidim-core-0.23.6 config/initializers/carrierwave.rb