Module: CarrierWave::RMagick::ClassMethods

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

Instance Method Summary collapse

Instance Method Details

#convert(format) ⇒ Object



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

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

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



92
93
94
# File 'lib/carrierwave/processing/rmagick.rb', line 92

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

#resize_to_fill(width, height) ⇒ Object



88
89
90
# File 'lib/carrierwave/processing/rmagick.rb', line 88

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

#resize_to_fit(width, height) ⇒ Object



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

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

#resize_to_limit(width, height) ⇒ Object



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

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