module PhotoCook::Resize::CarrierWave
Public Instance Methods
resize(w, h, mode = :fit, options = {})
click to toggle source
# File lib/photo-cook/resize/carrierwave.rb, line 7 def resize(w, h, mode = :fit, options = {}) PhotoCook::Resize.uri(url, w, h, mode, options) end
resize_inline(w, h, mode = :fit, options = {})
click to toggle source
# File lib/photo-cook/resize/carrierwave.rb, line 19 def resize_inline(w, h, mode = :fit, options = {}) PhotoCook::Resize.base64_uri(url, w, h, mode, options) end
resize_to_fill(w, h, options = {})
click to toggle source
# File lib/photo-cook/resize/carrierwave.rb, line 15 def resize_to_fill(w, h, options = {}) PhotoCook::Resize.uri(url, w, h, :fill, options) end
resize_to_fit(w, h, options = {})
click to toggle source
# File lib/photo-cook/resize/carrierwave.rb, line 11 def resize_to_fit(w, h, options = {}) PhotoCook::Resize.uri(url, w, h, :fit, options) end