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.24.2 config/initializers/carrierwave.rb
decidim-core-0.23.5 config/initializers/carrierwave.rb
decidim-core-0.24.1 config/initializers/carrierwave.rb
decidim-core-0.24.0 config/initializers/carrierwave.rb
decidim-core-0.24.0.rc2 config/initializers/carrierwave.rb
decidim-core-0.23.4 config/initializers/carrierwave.rb
decidim-core-0.24.0.rc1 config/initializers/carrierwave.rb
decidim-core-0.23.3 config/initializers/carrierwave.rb
decidim-core-0.23.2 config/initializers/carrierwave.rb
decidim-core-0.23.1 config/initializers/carrierwave.rb
decidim-core-0.23.1.rc1 config/initializers/carrierwave.rb
decidim-core-0.23.0 config/initializers/carrierwave.rb
decidim-core-0.22.0 config/initializers/carrierwave.rb
decidim-core-0.21.0 config/initializers/carrierwave.rb
decidim-core-0.20.1 config/initializers/carrierwave.rb
decidim-core-0.20.0 config/initializers/carrierwave.rb
decidim-core-0.19.1 config/initializers/carrierwave.rb
decidim-core-0.18.1 config/initializers/carrierwave.rb
decidim-core-0.19.0 config/initializers/carrierwave.rb
decidim-core-0.17.2 config/initializers/carrierwave.rb