Sha256: 364471ec812e4cfc16adc3b2ed0b35041398691ad32d22b294afbc64387ed152

Contents?: true

Size: 1.54 KB

Versions: 2

Compression:

Stored size: 1.54 KB

Contents

Dragonfly.app(:workarea).configure do
  # PDP Main Image Size
  processor :detail do |content|
    content.process!(:encode, :jpg, Workarea.config.jpg_encode_options)
    content.process!(:thumb, "360x480")
    content.process!(:optim)
  end

  # PDP Main Image Size - retina
  processor :detail_retina do |content|
    content.process!(:encode, :jpg, Workarea.config.jpg_encode_options)
    content.process!(:thumb, "720x960")
    content.process!(:optim)
  end

  # PDP Main Image Size - mobile
  processor :detail_mobile do |content|
    content.process!(:encode, :jpg, Workarea.config.jpg_encode_options)
    content.process!(:thumb, "255x340")
    content.process!(:optim)
  end

  # PDP Main Image Size - mobile retina
  processor :detail_mobile_retina do |content|
    content.process!(:encode, :jpg, Workarea.config.jpg_encode_options)
    content.process!(:thumb, "510x680")
    content.process!(:optim)
  end

  # PDP Thumbnail Image Size
  processor :small_thumb do |content|
    content.process!(:encode, :jpg, Workarea.config.jpg_encode_options)
    content.process!(:thumb, "180x240")
    content.process!(:optim)
  end

  # PDP Thumbnail Image Size - retina
  processor :small_thumb_retina do |content|
    content.process!(:encode, :jpg, Workarea.config.jpg_encode_options)
    content.process!(:thumb, "360x480")
    content.process!(:optim)
  end

  # Swatch Image Size
  processor :swatch_thumb do |content|
    content.process!(:encode, :jpg, Workarea.config.jpg_encode_options)
    content.process!(:thumb, "36x48")
    content.process!(:optim)
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
workarea-one_theme-1.3.1 config/initializers/dragonfly.rb
workarea-one_theme-1.3.0 config/initializers/dragonfly.rb