Sha256: c60ca48a635651d863bf8b4c69eaad32b82e31cda2e064c7afda00e6950b0ced

Contents?: true

Size: 338 Bytes

Versions: 57

Compression:

Stored size: 338 Bytes

Contents

# frozen_string_literal: true

module Decidim
  # This class deals with uploading hero images to ParticipatoryProcesses.
  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

57 entries across 57 versions & 2 rubygems

Version Path
decidim-core-0.6.1 app/uploaders/decidim/homepage_image_uploader.rb
decidim-0.6.1 decidim-core/app/uploaders/decidim/homepage_image_uploader.rb
decidim-core-0.6.0 app/uploaders/decidim/homepage_image_uploader.rb
decidim-0.6.0 decidim-core/app/uploaders/decidim/homepage_image_uploader.rb
decidim-core-0.5.1 app/uploaders/decidim/homepage_image_uploader.rb
decidim-0.5.1 decidim-core/app/uploaders/decidim/homepage_image_uploader.rb
decidim-core-0.5.0 app/uploaders/decidim/homepage_image_uploader.rb
decidim-0.5.0 decidim-core/app/uploaders/decidim/homepage_image_uploader.rb
decidim-core-0.4.4 app/uploaders/decidim/homepage_image_uploader.rb
decidim-core-0.4.2 app/uploaders/decidim/homepage_image_uploader.rb
decidim-core-0.4.1 app/uploaders/decidim/homepage_image_uploader.rb
decidim-core-0.4.3 app/uploaders/decidim/homepage_image_uploader.rb
decidim-core-0.4.0 app/uploaders/decidim/homepage_image_uploader.rb
decidim-core-0.3.2 app/uploaders/decidim/homepage_image_uploader.rb
decidim-core-0.3.1 app/uploaders/decidim/homepage_image_uploader.rb
decidim-core-0.3.0 app/uploaders/decidim/homepage_image_uploader.rb
decidim-core-0.2.0 app/uploaders/decidim/homepage_image_uploader.rb