Forum OpenACS Development: Re: Proposal to make portrait-bits to serve images as real images

http://cvs.openacs.org/cvs/openacs-4/packages/acs-content-repository/tcl/image-procs.tcl?rev=1.6&view=markup

Basically if you reference an image as
/image/thumnail/${item_id}

it will find any CR item of image type or subtype and serve it up. If the named size (thumbnail in this case) does not exist it'll create it and save it in the CR.

You can set any sizes you want in image::get_convert_to_sizes. Probably can be made a parameter in the future.

It already creates thumbnail, view and avatar named sizes.
So you can use /image/avatar/${item_id}

You can also append a filename to the URL for a prettier url like
/image/avatar/${item_id}/portrait.jpg