#this is a copy from
http://www.web2pyslices.com/slice/show/1522/generate-a-thumbnail-that-fits-in-a-box
#modules\smarthumb.py
from gluon import current
import os
try:
from PIL import Image
except:
import Image
def SMARTHUMB(image, box, fit=True, name="thumb"):
'''Downsample the image.
@param
Hi, I'm new to web2py and am looking for a solution to a problem. The
library is returning a path error while fetching an image for the
thumbnail.
I took the example from:
http://www.web2pyslices.com/slice/show/1522/generate-a-thumbnail-that-fits-in-a-box,
which returns
File "C: \ Users \
2 matches
Mail list logo