Module: CarrierWave::MiniMagick::ClassMethods
- Defined in:
- lib/carrierwave/processing/mini_magick.rb
Instance Method Summary collapse
- #convert(format) ⇒ Object
- #resize_and_pad(width, height, background = :transparent, gravity = ::Magick::CenterGravity) ⇒ Object
- #resize_to_fill(width, height) ⇒ Object
- #resize_to_fit(width, height) ⇒ Object
- #resize_to_limit(width, height) ⇒ Object
Instance Method Details
#convert(format) ⇒ Object
61 62 63 |
# File 'lib/carrierwave/processing/mini_magick.rb', line 61 def convert(format) process :convert => format end |
#resize_and_pad(width, height, background = :transparent, gravity = ::Magick::CenterGravity) ⇒ Object
77 78 79 |
# File 'lib/carrierwave/processing/mini_magick.rb', line 77 def resize_and_pad(width, height, background=:transparent, gravity=::Magick::CenterGravity) process :resize_and_pad => [width, height, background, gravity] end |
#resize_to_fill(width, height) ⇒ Object
73 74 75 |
# File 'lib/carrierwave/processing/mini_magick.rb', line 73 def resize_to_fill(width, height) process :resize_to_fill => [width, height] end |
#resize_to_fit(width, height) ⇒ Object
69 70 71 |
# File 'lib/carrierwave/processing/mini_magick.rb', line 69 def resize_to_fit(width, height) process :resize_to_fit => [width, height] end |
#resize_to_limit(width, height) ⇒ Object
65 66 67 |
# File 'lib/carrierwave/processing/mini_magick.rb', line 65 def resize_to_limit(width, height) process :resize_to_limit => [width, height] end |