Sha256: 09eedd9f0ab89fc3f5ad9928cd526a24f997b779900639d9ba2f4f03a758c9b4

Contents?: true

Size: 298 Bytes

Versions: 14

Compression:

Stored size: 298 Bytes

Contents

# frozen_string_literal: true

module Decidim
  # This class deals with uploading hero images to organizations.
  class HomepageImageUploader < RecordImageUploader
    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.24.3 app/uploaders/decidim/homepage_image_uploader.rb
decidim-core-0.23.6 app/uploaders/decidim/homepage_image_uploader.rb
decidim-core-0.24.2 app/uploaders/decidim/homepage_image_uploader.rb
decidim-core-0.23.5 app/uploaders/decidim/homepage_image_uploader.rb
decidim-core-0.24.1 app/uploaders/decidim/homepage_image_uploader.rb
decidim-core-0.24.0 app/uploaders/decidim/homepage_image_uploader.rb
decidim-core-0.24.0.rc2 app/uploaders/decidim/homepage_image_uploader.rb
decidim-core-0.23.4 app/uploaders/decidim/homepage_image_uploader.rb
decidim-core-0.24.0.rc1 app/uploaders/decidim/homepage_image_uploader.rb
decidim-core-0.23.3 app/uploaders/decidim/homepage_image_uploader.rb
decidim-core-0.23.2 app/uploaders/decidim/homepage_image_uploader.rb
decidim-core-0.23.1 app/uploaders/decidim/homepage_image_uploader.rb
decidim-core-0.23.1.rc1 app/uploaders/decidim/homepage_image_uploader.rb
decidim-core-0.23.0 app/uploaders/decidim/homepage_image_uploader.rb