Module: CarrierWave::MiniMagick::ClassMethods
- Defined in:
- lib/carrierwave/processing/mini_magick.rb
Instance Method Summary collapse
- #convert(format) ⇒ Object
- #crop(left, top, width, height) ⇒ Object
- #resize_and_pad(width, height, background = :transparent, gravity = 'Center') ⇒ Object
- #resize_to_fill(width, height, gravity = 'Center') ⇒ Object
- #resize_to_fit(width, height) ⇒ Object
- #resize_to_limit(width, height) ⇒ Object
Instance Method Details
#convert(format) ⇒ Object
63 64 65 |
# File 'lib/carrierwave/processing/mini_magick.rb', line 63 def convert(format) process :convert => format end |
#crop(left, top, width, height) ⇒ Object
83 84 85 |
# File 'lib/carrierwave/processing/mini_magick.rb', line 83 def crop(left, top, width, height) process :crop => [left, top, width, height] end |
#resize_and_pad(width, height, background = :transparent, gravity = 'Center') ⇒ Object
79 80 81 |
# File 'lib/carrierwave/processing/mini_magick.rb', line 79 def resize_and_pad(width, height, background=:transparent, gravity='Center') process :resize_and_pad => [width, height, background, gravity] end |
#resize_to_fill(width, height, gravity = 'Center') ⇒ Object
75 76 77 |
# File 'lib/carrierwave/processing/mini_magick.rb', line 75 def resize_to_fill(width, height, gravity='Center') process :resize_to_fill => [width, height, gravity] end |
#resize_to_fit(width, height) ⇒ Object
71 72 73 |
# File 'lib/carrierwave/processing/mini_magick.rb', line 71 def resize_to_fit(width, height) process :resize_to_fit => [width, height] end |
#resize_to_limit(width, height) ⇒ Object
67 68 69 |
# File 'lib/carrierwave/processing/mini_magick.rb', line 67 def resize_to_limit(width, height) process :resize_to_limit => [width, height] end |