Sha256: 4c4e028abf5f42020c98cf302f0c422c2a3d85270660bc2b10579f893233cb3b

Contents?: true

Size: 555 Bytes

Versions: 13

Compression:

Stored size: 555 Bytes

Contents

require 'dragonfly'

## initialize Dragonfly ##

app = Dragonfly[:images]
app.configure_with(:rails)
app.configure_with(:imagemagick)

## configure it ##

Dragonfly[:images].configure do |c|
  # Convert absolute location needs to be specified
  # to avoid issues with Phusion Passenger not using $PATH
  convert = `which convert`.strip.presence || "/usr/local/bin/convert"
  c.convert_command  = convert
  c.identify_command = convert

  c.allow_fetch_url  = true
  c.allow_fetch_file = true

  c.url_format = '/images/dynamic/:job/:basename.:format'
end

Version data entries

13 entries across 13 versions & 2 rubygems

Version Path
tribeca_cms-0.1.1 lib/generators/locomotive/install/templates/dragonfly.rb
tribeca_cms-2.0.0.rc12 lib/generators/locomotive/install/templates/dragonfly.rb
locomotive_cms-2.0.0.rc12 lib/generators/locomotive/install/templates/dragonfly.rb
locomotive_cms-2.0.0.rc11 lib/generators/locomotive/install/templates/dragonfly.rb
locomotive_cms-2.0.0.rc10 lib/generators/locomotive/install/templates/dragonfly.rb
locomotive_cms-2.0.0.rc9 lib/generators/locomotive/install/templates/dragonfly.rb
locomotive_cms-2.0.0.rc8 lib/generators/locomotive/install/templates/dragonfly.rb
locomotive_cms-2.0.0.rc7 lib/generators/locomotive/install/templates/dragonfly.rb
locomotive_cms-2.0.0.rc6 lib/generators/locomotive/install/templates/dragonfly.rb
locomotive_cms-2.0.0.rc5 lib/generators/locomotive/install/templates/dragonfly.rb
locomotive_cms-2.0.0.rc4 lib/generators/locomotive/install/templates/dragonfly.rb
locomotive_cms-2.0.0.rc2 lib/generators/locomotive/install/templates/dragonfly.rb
locomotive_cms-2.0.0.rc1 lib/generators/locomotive/install/templates/dragonfly.rb