Module: CarrierWave::RMagick::ClassMethods

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

Instance Method Summary collapse

Instance Method Details

#convert(format) ⇒ Object



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

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

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



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

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

#resize_to_fill(width, height, gravity = ::Magick::CenterGravity) ⇒ Object



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

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

#resize_to_fit(width, height) ⇒ Object



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

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

#resize_to_geometry_string(geometry_string) ⇒ Object



95
96
97
# File 'lib/carrierwave/processing/rmagick.rb', line 95

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

#resize_to_limit(width, height) ⇒ Object



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

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