Sha256: 76dac2a210fa803a812a3d1f37c055f5e5646e0f38bd5704b92252bbc6f3f5a1
Contents?: true
Size: 588 Bytes
Versions: 48
Compression:
Stored size: 588 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 c.convert_command = `which convert`.strip.presence || "/usr/local/bin/convert" c.identify_command = `which identify`.strip.presence || "/usr/local/bin/identify" c.allow_fetch_url = true c.allow_fetch_file = true c.url_format = '/images/dynamic/:job/:basename.:format' end
Version data entries
48 entries across 31 versions & 2 rubygems