Module: C80MapFloors::ModelFloorHelper
- Included in:
- Floor
- Defined in:
- app/helpers/c80_map_floors/model_floor_helper.rb
Instance Method Summary collapse
Instance Method Details
#get_height(image) ⇒ Object
20 21 22 23 |
# File 'app/helpers/c80_map_floors/model_floor_helper.rb', line 20 def get_height(image) img = MiniMagick::Image.open(image.path) img['height']/2 end |
#get_width(image) ⇒ Object
15 16 17 18 |
# File 'app/helpers/c80_map_floors/model_floor_helper.rb', line 15 def get_width(image) img = MiniMagick::Image.open(image.path) img['width']/2 end |