Module: CarrierWave::Vips::ClassMethods
- Defined in:
- lib/carrierwave/processing/vips.rb
Instance Method Summary collapse
- #convert(format) ⇒ Object
- #crop(left, top, width, height) ⇒ Object
- #resize_and_pad(width, height, background = nil, gravity = 'centre', alpha = nil) ⇒ Object
- #resize_to_fill(width, height, gravity = 'centre') ⇒ Object
- #resize_to_fit(width, height) ⇒ Object
- #resize_to_limit(width, height) ⇒ Object
Instance Method Details
#convert(format) ⇒ Object
62 63 64 |
# File 'lib/carrierwave/processing/vips.rb', line 62 def convert(format) process :convert => format end |
#crop(left, top, width, height) ⇒ Object
82 83 84 |
# File 'lib/carrierwave/processing/vips.rb', line 82 def crop(left, top, width, height) process :crop => [left, top, width, height] end |
#resize_and_pad(width, height, background = nil, gravity = 'centre', alpha = nil) ⇒ Object
78 79 80 |
# File 'lib/carrierwave/processing/vips.rb', line 78 def resize_and_pad(width, height, background=nil, gravity='centre', alpha=nil) process :resize_and_pad => [width, height, background, gravity, alpha] end |
#resize_to_fill(width, height, gravity = 'centre') ⇒ Object
74 75 76 |
# File 'lib/carrierwave/processing/vips.rb', line 74 def resize_to_fill(width, height, gravity='centre') process :resize_to_fill => [width, height, gravity] end |
#resize_to_fit(width, height) ⇒ Object
70 71 72 |
# File 'lib/carrierwave/processing/vips.rb', line 70 def resize_to_fit(width, height) process :resize_to_fit => [width, height] end |
#resize_to_limit(width, height) ⇒ Object
66 67 68 |
# File 'lib/carrierwave/processing/vips.rb', line 66 def resize_to_limit(width, height) process :resize_to_limit => [width, height] end |