fixed gluon/contrib/imageutils.py image path, thanks Tito Garrido
This commit is contained in:
2
VERSION
2
VERSION
@@ -1 +1 @@
|
||||
Version 2.4.6-stable+timestamp.2013.04.19.23.45.56
|
||||
Version 2.4.6-stable+timestamp.2013.04.21.19.50.11
|
||||
|
||||
@@ -51,7 +51,7 @@ def THUMB(image, nx=120, ny=120, gae=False, name='thumb'):
|
||||
request = current.request
|
||||
from PIL import Image
|
||||
import os
|
||||
img = Image.open(request.folder + 'uploads/' + image)
|
||||
img = Image.open(os.path.join(request.folder,'uploads',image))
|
||||
img.thumbnail((nx, ny), Image.ANTIALIAS)
|
||||
root, ext = os.path.splitext(image)
|
||||
thumb = '%s_%s%s' % (root, name, ext)
|
||||
|
||||
Reference in New Issue
Block a user