small typo error in my previous post: should be:

> def makeThumbnail(ImageID):
>     try:    thisImage=db(db.yourtable.id==ImageID).select()[0]
>     except: return
>     im=Image.open(request.folder + 'uploads/' + thisImage.MainPic)
>     im.thumbnail((200,150),Image.ANTIALIAS)
>     thumbName='Images.ThumbPic.%s.jpg' % (uuid.uuid4())
>     im.save(request.folder + 'uploads/' + thumbName,'jpeg')
>     thisImage.update_record(Thumbnail=thumbName)

thisImage.update_record(ThumbPic=thumbName)

>     return

-- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web...@googlegroups.com.
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en.

Reply via email to