Module: Magickly
- Defined in:
- lib/magickly.rb,
lib/magickly/app.rb
Defined Under Namespace
Classes: App
Constant Summary collapse
- DEFAULT_PALETTE_COLOR_COUNT =
5
Class Method Summary collapse
- .dragonfly ⇒ Object
- .process_image(image, options = {}) ⇒ Object
- .process_src(src, options = {}) ⇒ Object
Class Method Details
.dragonfly ⇒ Object
22 23 24 |
# File 'lib/magickly.rb', line 22 def dragonfly @dragonfly end |
.process_image(image, options = {}) ⇒ Object
34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 |
# File 'lib/magickly.rb', line 34 def process_image(image, ={}) .each do |method, val| method = method.to_sym if Magickly.dragonfly.processor_methods.include?(method) if val == 'true' image = image.process method else image = image.process method, val end elsif Magickly.dragonfly.job_methods.include?(method) # note: might be an app-defined dragonfly shortcut image = image.send(method, val) end end image end |