Sha256: 52bdea88ba2aabaccda43276fedb11617a57bae78d4c991da1a644f8ed59c6b1

Contents?: true

Size: 292 Bytes

Versions: 6

Compression:

Stored size: 292 Bytes

Contents

# frozen_string_literal: true

module Decidim
  # This class deals with uploading hero images to organizations.
  class HomepageImageUploader < ImageUploader
    version :big do
      process resize_to_fill: [1920, 666]
    end

    def max_image_height_or_width
      8000
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
decidim-core-0.22.0 app/uploaders/decidim/homepage_image_uploader.rb
decidim-core-0.21.0 app/uploaders/decidim/homepage_image_uploader.rb
decidim-core-0.20.1 app/uploaders/decidim/homepage_image_uploader.rb
decidim-core-0.20.0 app/uploaders/decidim/homepage_image_uploader.rb
decidim-core-0.19.1 app/uploaders/decidim/homepage_image_uploader.rb
decidim-core-0.19.0 app/uploaders/decidim/homepage_image_uploader.rb