cfimage documentation states the destination can be an "Absolute or relative pathname where the image output is written."
http://livedocs.adobe.com/coldfusion/8/htmldocs/Tags_i_02.html Write an image to a file <cfimage required action = "write" destination = "absolute pathname|pathname relative to the web root" source = "absolute or relative pathname|URL|#cfimage variable#" optional isBase64= "yes|no" overwrite = "yes|no" quality = "JPEG image quality"> Thanks, Eric Les Mizzell wrote: > Quick cfimage question: > > Working on a gallery and wanting to create thumbs. No problem resizing. > > Need to write the created thumb to a new directory. Looking at the CF > docs - uhhh, the example leaves a little to be desired: > > <cfimage source="../artgallery/jeff05.jpg" > action="write" > destination="jeff05.jpg"> > > The "destination" is just the image name in the example, so it would > overwrite the original. Can the "destination" include a path as well? > > destination="../artgallery/thumbs/jeff05.jpg" > > Is the path relative to the file the cfimage tag is located on, or > relative to the original image location? > > I thought about not even creating/saving the thumbs, but creating them > on the fly. I'm a little concerned about server load to do such a thing > though, especially if the gallery in mind might need 30 thumbs for al > the images. Very bad idea, right? > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:318660 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

