from os.path import join, dirname, getmtime, exists, expanduser
from os.path import join, dirname, getmtime, exists, expanduser
if not exists(library) or getmtime(sauce) > getmtime(library):
build = "gcc -fPIC -shared -o %s %s" % (library, sauce)
assert os.system(build + " >/dev/null 2>&1") == 0
if not exists(library) or getmtime(sauce) > getmtime(library):
build = "gcc -fPIC -shared -o %s %s" % (library, sauce)
assert os.system(build + " >/dev/null 2>&1") == 0
- i = i.resize((width, height), Image.BICUBIC)
- height = min(height,30)
+ i = i.resize((width, height), Image.ANTIALIAS)
+ height = min(height, IMAGE_MAX_HEIGHT)