Sha256: 4fdd4dc5efcaa8cbf49469095d99a8bd546bd73a01a7348603896914b674f14a

Contents?: true

Size: 307 Bytes

Versions: 38

Compression:

Stored size: 307 Bytes

Contents

# frozen_string_literal: true

module Decidim::Cw
  # This class deals with uploading hero images to organizations.
  class HomepageImageUploader < RecordImageUploader
    set_variants do
      { big: { resize_to_fill: [1920, 666] } }
    end

    def max_image_height_or_width
      8000
    end
  end
end

Version data entries

38 entries across 38 versions & 1 rubygems

Version Path
decidim-core-0.28.4 app/uploaders/decidim/cw/homepage_image_uploader.rb
decidim-core-0.27.9 app/uploaders/decidim/cw/homepage_image_uploader.rb
decidim-core-0.28.3 app/uploaders/decidim/cw/homepage_image_uploader.rb
decidim-core-0.27.8 app/uploaders/decidim/cw/homepage_image_uploader.rb
decidim-core-0.28.2 app/uploaders/decidim/cw/homepage_image_uploader.rb
decidim-core-0.27.7 app/uploaders/decidim/cw/homepage_image_uploader.rb
decidim-core-0.28.1 app/uploaders/decidim/cw/homepage_image_uploader.rb
decidim-core-0.27.6 app/uploaders/decidim/cw/homepage_image_uploader.rb
decidim-core-0.26.10 app/uploaders/decidim/cw/homepage_image_uploader.rb
decidim-core-0.26.9 app/uploaders/decidim/cw/homepage_image_uploader.rb
decidim-core-0.28.0 app/uploaders/decidim/cw/homepage_image_uploader.rb
decidim-core-0.27.5 app/uploaders/decidim/cw/homepage_image_uploader.rb
decidim-core-0.28.0.rc5 app/uploaders/decidim/cw/homepage_image_uploader.rb
decidim-core-0.28.0.rc4 app/uploaders/decidim/cw/homepage_image_uploader.rb
decidim-core-0.26.8 app/uploaders/decidim/cw/homepage_image_uploader.rb
decidim-core-0.27.4 app/uploaders/decidim/cw/homepage_image_uploader.rb
decidim-core-0.27.3 app/uploaders/decidim/cw/homepage_image_uploader.rb
decidim-core-0.26.7 app/uploaders/decidim/cw/homepage_image_uploader.rb
decidim-core-0.26.5 app/uploaders/decidim/cw/homepage_image_uploader.rb
decidim-core-0.27.2 app/uploaders/decidim/cw/homepage_image_uploader.rb