i totally agree with Claude: unless there is a better reason to not have thumbnail-sized images, you should not tax your server with all the cfimage resizing - it is a very memory-intensive operation. i use this on-the-fly functionality on one of the sites to add a watermark to a large-size preview image for non-registered viewers. but i definitely would not use this to create and display thumbnails...
but... if you are set in your way, look at imageUtils cfc on riaforge - Ray & Ben & Co have made a great job with it. it includes a custom imagewritetobrowser function that can add alt, style and lots of other html attributes to the img tag it produces. Azadi Saryev Sabai-dee.com http://www.sabai-dee.com/ Claude Schneegans wrote: > >>Any oppinion is appreciated. > > Well, IMO, the big idea of thumbnails is to show many images roughly and > in the same page, > so that the user can choose only the one in want in large format. > Having to read and downsize 10 or 20 or more images is not really > compatible with this purpose. > The images are not sent over the Internet, but the server is kept busy > unnecessarily. > > The only reason I would see an advantage would be a situation were you > have millions > of images so that the probability for any image to appear in a thumbnail > page is very low. > Otherwise, I would produce the thumbnail images once for ever,... until > you change your mind, > .... and unless you change your mind every day ;-) > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:311907 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4