'Analyzes the image provided and attempts to determine whether it is a poster or banner.
:param path: full path to the image
:return: BANNER, POSTER if it concluded one or the other, or None if the image was neither (or didn\'t exist)'

def which_type(self, path):

    if (not ek(os.path.isfile, path)):
        logger.log(((u"Couldn't    check    the    type    of    " + str(path)) + u"    cause    it    doesn't    exist"), logger.WARNING)
        return None
    img_parser = createParser(path)
    img_metadata = extractMetadata(img_parser)
    if (not img_metadata):
        logger.log(((u'Unable    to    get    metadata    from    ' + str(path)) + u',    not    using    your    existing    image'), logger.DEBUG)
        return None
    img_ratio = (float(img_metadata.get(u'width')) / float(img_metadata.get(u'height')))
    img_parser.stream._input.close()
    if (0.55 < img_ratio < 0.8):
        return self.POSTER
    elif (5 < img_ratio < 6):
        return self.BANNER
    elif (1.7 < img_ratio < 1.8):
        return self.FANART
    else:
        logger.log(((u'Image    has    size    ratio    of    ' + str(img_ratio)) + u',    unknown    type'), logger.WARNING)
        return None
