Module: CarrierWave::MiniMagick::ClassMethods

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

Instance Method Summary collapse

Instance Method Details

#convert(format) ⇒ Object



66
67
68
# File 'lib/carrierwave/processing/mini_magick.rb', line 66

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

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



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

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

#resize_to_fill(width, height) ⇒ Object



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

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

#resize_to_fit(width, height) ⇒ Object



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

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

#resize_to_limit(width, height) ⇒ Object



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

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