Module: CarrierWave::MiniMagick::ClassMethods

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

Instance Method Summary (collapse)

Instance Method Details

- (Object) convert(format)



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

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

- (Object) resize_and_pad(width, height, background = :transparent, gravity = ::Magick::CenterGravity)



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

def resize_and_pad(width, height, background=:transparent, gravity=::Magick::CenterGravity)
  process :resize_and_pad => [width, height, background, gravity]
end

- (Object) resize_to_fill(width, height, gravity = 'Center')



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

- (Object) resize_to_fit(width, height)



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

- (Object) resize_to_limit(width, height)



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