Пример #1
0
def read_pattern(raw_content):
    if raw_content[:len(EPS_HEADER)] == EPS_HEADER:
        return b64encode(raw_content), 'EPS'
    fobj, flag = magickwand.process_pattern(raw_content)
    return b64encode(fobj.getvalue()), flag
Пример #2
0
def read_pattern(raw_content):
	if raw_content[:len(EPS_HEADER)] == EPS_HEADER:
		return b64encode(raw_content), 'EPS'
	fobj, flag = process_pattern(raw_content)
	return b64encode(fobj.getvalue()), flag