def load_image(filename, cache=1): if type(filename) == StringType: image = get_cached(filename) if image: return image image = PIL.Image.open(filename) if type(filename) != StringType: filename = '' return ImageData(image, filename=filename, cache=cache)
def load_image(filename, cache = 1): if type(filename) == StringType: image = get_cached(filename) if image: return image image = PIL.Image.open(filename) if type(filename) != StringType: filename = '' return ImageData(image, filename = filename, cache = cache)
def load_eps(filename): eps = get_cached(filename) if eps: return eps return EpsData(filename)