fixed gluon/contrib/imageutils.py image path, thanks Tito Garrido

This commit is contained in:
mdipierro
2013-04-21 19:50:55 -05:00
parent c17e642f1f
commit b00463bdf4
2 changed files with 2 additions and 2 deletions

View File

@@ -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

View File

@@ -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)