Sha256: aac6dca3b6ee974c34219d0a783635281867afd40d3fc5e6d551c59156613aae

Contents?: true

Size: 329 Bytes

Versions: 14

Compression:

Stored size: 329 Bytes

Contents

# frozen_string_literal: true

module Decidim
  # This class deals with uploading hero images to organizations.
  class HomepageImageUploader < ImageUploader
    include CarrierWave::MiniMagick

    version :big do
      process resize_to_fill: [1920, 666]
    end

    def max_image_height_or_width
      8000
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
decidim-core-0.18.1 app/uploaders/decidim/homepage_image_uploader.rb
decidim-core-0.17.2 app/uploaders/decidim/homepage_image_uploader.rb
decidim-core-0.18.0 app/uploaders/decidim/homepage_image_uploader.rb
decidim-core-0.17.1 app/uploaders/decidim/homepage_image_uploader.rb
decidim-core-0.16.1 app/uploaders/decidim/homepage_image_uploader.rb
decidim-core-0.17.0 app/uploaders/decidim/homepage_image_uploader.rb
decidim-core-0.16.0 app/uploaders/decidim/homepage_image_uploader.rb
decidim-core-0.15.2 app/uploaders/decidim/homepage_image_uploader.rb
decidim-core-0.15.1 app/uploaders/decidim/homepage_image_uploader.rb
decidim-core-0.15.0 app/uploaders/decidim/homepage_image_uploader.rb
decidim-core-0.14.4 app/uploaders/decidim/homepage_image_uploader.rb
decidim-core-0.14.3 app/uploaders/decidim/homepage_image_uploader.rb
decidim-core-0.14.2 app/uploaders/decidim/homepage_image_uploader.rb
decidim-core-0.14.1 app/uploaders/decidim/homepage_image_uploader.rb