There are many ways of doing that, one option is to overlay the image with the border images using CSS background clipping, so you can save the file and the ID of the border, so when you show this in view you choose the border dynamically.
If you want to save the image with border on disk then you have to take a look at the PIL documentation. Another option is aviary API http://www.aviary.com/web On Tue, Mar 27, 2012 at 10:04 AM, mwk <mwkant...@gmail.com> wrote: > Hi Massimo and All, > > I want a user to be able to upload an image and choose a border to > surround it from a choice of images I have in the database. I want > them to be able to play around and see what looks best to them before > saving their final border choice and uploaded image to the database. > I don't know how to do this. Can someone please provide some sample > code that will get me going? > > Thanks a bunch > Web2py_Superfan -- Bruno Rocha [http://rochacbruno.com.br]