Module: CarrierWave::MiniMagick::ClassMethods

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

Instance Method Summary collapse

Instance Method Details

#convert(format) ⇒ Object



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

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

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



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

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



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

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

#resize_to_fit(width, height) ⇒ Object



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

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

#resize_to_limit(width, height) ⇒ Object



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

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