Пример #1
0
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)
Пример #2
0
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)
Пример #3
0
def load_eps(filename):
    eps = get_cached(filename)
    if eps:
        return eps
    return EpsData(filename)
Пример #4
0
def load_eps(filename):
	eps = get_cached(filename)
	if eps:
		return eps
	return EpsData(filename)