Module: CarrierWave::RMagick::ClassMethods
- Defined in:
- lib/carrierwave/processing/rmagick.rb
Instance Method Summary collapse
- #convert(format) ⇒ Object
- #resize_and_pad(width, height, background = :transparent, gravity = ::Magick::CenterGravity) ⇒ Object
- #resize_to_fill(width, height, gravity = ::Magick::CenterGravity) ⇒ Object
- #resize_to_fit(width, height) ⇒ Object
- #resize_to_geometry_string(geometry_string) ⇒ Object
- #resize_to_limit(width, height) ⇒ Object
Instance Method Details
#convert(format) ⇒ Object
80 81 82 |
# File 'lib/carrierwave/processing/rmagick.rb', line 80 def convert(format) process :convert => format end |
#resize_and_pad(width, height, background = :transparent, gravity = ::Magick::CenterGravity) ⇒ Object
96 97 98 |
# File 'lib/carrierwave/processing/rmagick.rb', line 96 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
92 93 94 |
# File 'lib/carrierwave/processing/rmagick.rb', line 92 def resize_to_fill(width, height, gravity=::Magick::CenterGravity) process :resize_to_fill => [width, height, gravity] end |
#resize_to_fit(width, height) ⇒ Object
88 89 90 |
# File 'lib/carrierwave/processing/rmagick.rb', line 88 def resize_to_fit(width, height) process :resize_to_fit => [width, height] end |
#resize_to_geometry_string(geometry_string) ⇒ Object
100 101 102 |
# File 'lib/carrierwave/processing/rmagick.rb', line 100 def resize_to_geometry_string(geometry_string) process :resize_to_geometry_string => [geometry_string] end |
#resize_to_limit(width, height) ⇒ Object
84 85 86 |
# File 'lib/carrierwave/processing/rmagick.rb', line 84 def resize_to_limit(width, height) process :resize_to_limit => [width, height] end |