Class: LightResizer::Middleware::Resizer

Inherits:
Object
  • Object
show all
Defined in:
lib/light_resizer/middleware/resizer.rb

Instance Method Summary collapse

Instance Method Details

#resize(dimensions, original_path, resize_path, crop, extension, convert) ⇒ Object



6
7
8
9
# File 'lib/light_resizer/middleware/resizer.rb', line 6

def resize(dimensions, original_path, resize_path, crop, extension, convert)
  check_resized_dir(resize_path)
  store_image(dimensions, original_path, resize_path, crop, extension)
end