Method: Decidim::ImageUploader#dimensions_info

Defined in:
app/uploaders/decidim/image_uploader.rb

#dimensions_infoObject

Fetches info about different variants, their processors and dimensions



15
16
17
18
19
20
21
22
23
24
# File 'app/uploaders/decidim/image_uploader.rb', line 15

def dimensions_info
  return if variants.blank?

  variants.transform_values do |variant|
    {
      processor: variant.keys.first,
      dimensions: variant.values.first
    }
  end
end