app/controllers/spotlight/catalog_controller.rb
def dimensions_to_i(canvas, resource)
      canvas.width = canvas.width.to_i
      canvas.height = canvas.height.to_i
      resource.width = resource.width.to_i
      resource.height = resource.height.to_i
      resource["@id"] = canvas["@id"]
      return [canvas, resource]
    end
# Returns manifest heights and widths as integers so that manifest will validate
Returns manifest heights and widths as integers so that manifest will validate
Returns manifest heights and widths as integers so that manifest will validate
def dimensions_to_i(canvas, resource)
      canvas.width = canvas.width.to_i
      canvas.height = canvas.height.to_i
      resource.width = resource.width.to_i
      resource.height = resource.height.to_i
      resource["@id"] = canvas["@id"]
      return [canvas, resource]
    end
def dimensions_to_i ( canvas , resource ) canvas . width = canvas . width . to_i canvas . height = canvas . height . to_i resource . width = resource . width . to_i resource . height = resource . height . to_i resource [ "@id" ] = canvas [ "@id" ] return [ canvas , resource ] end
Returns manifest heights and widths as integers so that manifest will validate
Returns manifest heights and widths as integers so that manifest will validate
canvas
resource