Sha256: 16574a60073036fbbfd3c058645c5f93383a06c465cd9aa58479910f103317aa

Contents?: true

Size: 701 Bytes

Versions: 68

Compression:

Stored size: 701 Bytes

Contents

module RedArtisan
  module CoreImage
    module Filters
      module Quality

        def reduce_noise(level = 0.02, sharpness = 0.4)
          create_core_image_context(@original.extent.size.width, @original.extent.size.height)

          @original.noise_reduction :inputNoiseLevel => level, :inputSharpness => sharpness do |noise_reduced|
            @target = noise_reduced
          end
        end

        def adjust_exposure(input_ev = 0.5)
          create_core_image_context(@original.extent.size.width, @original.extent.size.height)

          @original.exposure_adjust :inputEV => input_ev do |adjusted|
            @target = adjusted
          end
        end

      end
    end
  end
end

Version data entries

68 entries across 68 versions & 2 rubygems

Version Path
refinerycms-0.9.6.9 vendor/plugins/attachment_fu/vendor/red_artisan/core_image/filters/quality.rb
refinerycms-0.9.6.8 vendor/plugins/attachment_fu/vendor/red_artisan/core_image/filters/quality.rb
refinerycms-0.9.6.7 vendor/plugins/attachment_fu/vendor/red_artisan/core_image/filters/quality.rb
refinerycms-0.9.6.6 vendor/plugins/attachment_fu/vendor/red_artisan/core_image/filters/quality.rb
refinerycms-0.9.6.5 vendor/plugins/attachment_fu/vendor/red_artisan/core_image/filters/quality.rb
refinerycms-0.9.6.4 vendor/plugins/attachment_fu/vendor/red_artisan/core_image/filters/quality.rb
refinerycms-0.9.6.3 vendor/plugins/attachment_fu/vendor/red_artisan/core_image/filters/quality.rb
refinerycms-0.9.6.2 vendor/plugins/attachment_fu/vendor/red_artisan/core_image/filters/quality.rb
refinerycms-0.9.6.1 vendor/plugins/attachment_fu/vendor/red_artisan/core_image/filters/quality.rb
refinerycms-0.9.6 vendor/plugins/attachment_fu/vendor/red_artisan/core_image/filters/quality.rb
refinerycms-0.9.5.31 vendor/plugins/attachment_fu/vendor/red_artisan/core_image/filters/quality.rb
refinerycms-0.9.5.30 vendor/plugins/attachment_fu/vendor/red_artisan/core_image/filters/quality.rb
refinerycms-0.9.5.29 vendor/plugins/attachment_fu/vendor/red_artisan/core_image/filters/quality.rb
refinerycms-0.9.5.28 vendor/plugins/attachment_fu/vendor/red_artisan/core_image/filters/quality.rb
refinerycms-0.9.5.27 vendor/plugins/attachment_fu/vendor/red_artisan/core_image/filters/quality.rb
refinerycms-0.9.5.26 vendor/plugins/attachment_fu/vendor/red_artisan/core_image/filters/quality.rb
refinerycms-0.9.5.25 vendor/plugins/attachment_fu/vendor/red_artisan/core_image/filters/quality.rb
refinerycms-0.9.5.24 vendor/plugins/attachment_fu/vendor/red_artisan/core_image/filters/quality.rb
refinerycms-0.9.5.23 vendor/plugins/attachment_fu/vendor/red_artisan/core_image/filters/quality.rb
refinerycms-0.9.5.22 vendor/plugins/attachment_fu/vendor/red_artisan/core_image/filters/quality.rb