Module: CarrierWave::RMagick::ClassMethods

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

Instance Method Summary (collapse)

Instance Method Details

- (Object) convert(format)



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

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

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



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

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 = ::Magick::CenterGravity)



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

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

- (Object) resize_to_fit(width, height)



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

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

- (Object) resize_to_geometry_string(geometry_string)



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

def resize_to_geometry_string(geometry_string)
  process :resize_to_geometry_string => [geometry_string]
end

- (Object) resize_to_limit(width, height)



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

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