Module: Magickly
- Defined in:
- lib/magickly.rb,
lib/magickly/app.rb,
lib/magickly/version.rb
Defined Under Namespace
Classes: App
Constant Summary collapse
- DEFAULT_PALETTE_COLOR_COUNT =
5
- VERSION =
'2.0.2'
Class Method Summary collapse
- .dragonfly ⇒ Object
- .process_image(image, options = {}) ⇒ Object
- .process_src(src, options = {}) ⇒ Object
Class Method Details
.dragonfly ⇒ Object
25 26 27 |
# File 'lib/magickly.rb', line 25 def dragonfly @dragonfly end |
.process_image(image, options = {}) ⇒ Object
37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 |
# File 'lib/magickly.rb', line 37 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 |