Sha256: 566f786c565a0ac3e61947c805c25aa0480c2c9821651b95c1e6025cb6934972

Contents?: true

Size: 311 Bytes

Versions: 4

Compression:

Stored size: 311 Bytes

Contents

# frozen_string_literal: true
module Decidim
  # This class deals with uploading hero images to ParticipatoryProcesses.
  class OfficialImageHeaderUploader < ImageUploader
    include CarrierWave::MiniMagick
    process resize_to_limit: [160, 160]

    def max_image_height_or_width
      300
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
decidim-core-0.1.0 app/uploaders/decidim/official_image_header_uploader.rb
decidim-core-0.0.8.1 app/uploaders/decidim/official_image_header_uploader.rb
decidim-core-0.0.7 app/uploaders/decidim/official_image_header_uploader.rb
decidim-core-0.0.6 app/uploaders/decidim/official_image_header_uploader.rb