Hi I don't think that's what I need.. perhaps it is

I have my download controller for example it takes in arguments for width
and height.

def download():
    if len(request.args) == 1:
        return response.download(request, db)
    else:
        myImage = request.args[0]
        myImage = os.path.join(request.folder, "uploads", myImage)
        width = request.args[1]
        height = request.args[2]
        im = Image.open(myImage)

    resized_image = im.thumbnail(width, height)
    return resized_image

but doesn't work when I type this in my view maybe I don't understand it
right

<img id="post_view" src="{{=URL('default','download',
args=row.image, 400, 300)}}">

But I will look at what you said

*cheers

Reply via email to