def exists(self, name): """Check if an File/Image exists.""" try: huimages.get_size(name) return True except: return False
def size(self, name): """Return the dimensions (x, y) of an image.""" return huimages.get_size(name)