Module: Alchemy::DragonflyToImageProcessing

Defined in:
app/services/alchemy/dragonfly_to_image_processing.rb

Constant Summary collapse

RESIZE_TO_LIMIT =
/>$/
RESIZE_TO_FILL =
/\#$/
RESIZE_TO_FIT =
/\^$/
NOSHARPEN =
{sharpen: false}.freeze

Class Method Summary collapse

Class Method Details

.call(options = {}) ⇒ Object



11
12
13
14
15
16
# File 'app/services/alchemy/dragonfly_to_image_processing.rb', line 11

def call(options = {})
  opts = crop_options(options).presence || resize_options(options)
  opts.merge!(format_options(options))
  opts.merge!(quality_options(options))
  opts
end