Module: CarrierWave::RMagick::ClassMethods
- Defined in:
- lib/carrierwave/processing/rmagick.rb
Instance Method Summary collapse
- #convert(format) ⇒ Object
- #crop(left, top, width, height) ⇒ 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
82 83 84 |
# File 'lib/carrierwave/processing/rmagick.rb', line 82 def convert(format) process :convert => format end |
#crop(left, top, width, height) ⇒ Object
106 107 108 |
# File 'lib/carrierwave/processing/rmagick.rb', line 106 def crop(left, top, width, height) process :crop => [left, top, width, height] end |
#resize_and_pad(width, height, background = :transparent, gravity = ::Magick::CenterGravity) ⇒ Object
98 99 100 |
# File 'lib/carrierwave/processing/rmagick.rb', line 98 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
94 95 96 |
# File 'lib/carrierwave/processing/rmagick.rb', line 94 def resize_to_fill(width, height, gravity=::Magick::CenterGravity) process :resize_to_fill => [width, height, gravity] end |
#resize_to_fit(width, height) ⇒ Object
90 91 92 |
# File 'lib/carrierwave/processing/rmagick.rb', line 90 def resize_to_fit(width, height) process :resize_to_fit => [width, height] end |
#resize_to_geometry_string(geometry_string) ⇒ Object
102 103 104 |
# File 'lib/carrierwave/processing/rmagick.rb', line 102 def resize_to_geometry_string(geometry_string) process :resize_to_geometry_string => [geometry_string] end |
#resize_to_limit(width, height) ⇒ Object
86 87 88 |
# File 'lib/carrierwave/processing/rmagick.rb', line 86 def resize_to_limit(width, height) process :resize_to_limit => [width, height] end |