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.13.1 app/uploaders/decidim/homepage_image_uploader.rb
decidim-core-0.12.2 app/uploaders/decidim/homepage_image_uploader.rb
decidim-core-0.13.0 app/uploaders/decidim/homepage_image_uploader.rb
decidim-core-0.12.1 app/uploaders/decidim/homepage_image_uploader.rb
decidim-core-0.13.0.pre1 app/uploaders/decidim/homepage_image_uploader.rb
decidim-core-0.12.0 app/uploaders/decidim/homepage_image_uploader.rb
decidim-core-0.11.2 app/uploaders/decidim/homepage_image_uploader.rb
decidim-core-0.12.0.pre app/uploaders/decidim/homepage_image_uploader.rb
decidim-core-0.11.1 app/uploaders/decidim/homepage_image_uploader.rb
decidim-core-0.11.0.pre1 app/uploaders/decidim/homepage_image_uploader.rb
decidim-core-0.10.1 app/uploaders/decidim/homepage_image_uploader.rb
decidim-core-0.10.0 app/uploaders/decidim/homepage_image_uploader.rb
decidim-core-0.9.3 app/uploaders/decidim/homepage_image_uploader.rb
decidim-core-0.9.2 app/uploaders/decidim/homepage_image_uploader.rb
decidim-core-0.9.1 app/uploaders/decidim/homepage_image_uploader.rb
decidim-core-0.9.0 app/uploaders/decidim/homepage_image_uploader.rb
decidim-core-0.8.4 app/uploaders/decidim/homepage_image_uploader.rb
decidim-core-0.8.3 app/uploaders/decidim/homepage_image_uploader.rb
decidim-core-0.8.2 app/uploaders/decidim/homepage_image_uploader.rb
decidim-core-0.8.1 app/uploaders/decidim/homepage_image_uploader.rb