Module: CarrierWave::MiniMagick::ClassMethods

Defined in:
lib/carrierwave/processing/mini_magick.rb

Instance Method Summary collapse

Instance Method Details

#convert(format) ⇒ Object



68
69
70
# File 'lib/carrierwave/processing/mini_magick.rb', line 68

def convert(format)
  process :convert => format
end

#resize_and_pad(width, height, background = :transparent, gravity = 'Center') ⇒ Object



84
85
86
# File 'lib/carrierwave/processing/mini_magick.rb', line 84

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



80
81
82
# File 'lib/carrierwave/processing/mini_magick.rb', line 80

def resize_to_fill(width, height, gravity='Center')
  process :resize_to_fill => [width, height, gravity]
end

#resize_to_fit(width, height) ⇒ Object



76
77
78
# File 'lib/carrierwave/processing/mini_magick.rb', line 76

def resize_to_fit(width, height)
  process :resize_to_fit => [width, height]
end

#resize_to_limit(width, height) ⇒ Object



72
73
74
# File 'lib/carrierwave/processing/mini_magick.rb', line 72

def resize_to_limit(width, height)
  process :resize_to_limit => [width, height]
end