"Trying to get property of non-object" for image_get_info
Always, always read the documentation first:


  Return Value
  
  FALSE, if the file could not be found or is not an image. Otherwise, a keyed array containing information about the image:


Emphasis mine.