Sha256: 308226f968a58d7c1256b2b25d3b9875123f60963d6fa5571cbe08d5dcef362d

Contents?: true

Size: 727 Bytes

Versions: 1

Compression:

Stored size: 727 Bytes

Contents

Dragonfly.app(:workarea).configure do
  plugin :imagemagick

  verify_urls true
  secret Rails.application.secrets.dragonfly_secret.presence ||
  Rails.application.secret_key_base

  url_format '/media/:job/:name'
  processor :optim, Workarea::ImageOptimProcessor
end

Dragonfly.logger = Rails.logger

processors = Dragonfly.app(:workarea).processors.names

Dragonfly.app(:workarea).configure do

  unless processors.include?(:option_a)
    processor :option_a do |content|
      content.process!(:thumb, '70x70')
      content.process!(:optim)
    end
  end

  unless processors.include?(:detail_a)
    processor :detail_a do |content|
      content.process!(:thumb, '500x500')
      content.process!(:optim)
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
workarea-image_decoration-1.0.0.pre config/initializers/dragonfly.rb