I ran into a cfimage behavior that was not quite what I expected, perhaps it will be more obvious to others. I wanted to resize an image. I wanted to use cfimage to read the image, resize it, and write it to the browser without saving it back to disk.
The resize action is what had me stumped for a bit. I was expecting to be able to resize the image "in place". I tried some code like below: <cfimage action="READ" name="picThisAssistant" source="/var/www/images/staffpics/#myassistant.assistantstaffid#.jpg"> <cfimage action="RESIZE" height="71" width="55" source="#picThisAssistant#"> <cfimage action="WRITETOBROWSER" source="#picThisAssistant#"> It Turns out that resize always needs a place defined to put the output, either the name of a variable(NAME), or a file location(DESTINATION), even if it is the same as the source. I ended up using it like this because I didn't know if there would be issues writing it back to the same variable name I was using as a source. <cfimage action="READ" name="picThisAssistant" source="/var/www/images/staffpics/#myassistant.assistantstaffid#.jpg"> <cfimage action="RESIZE" height="71" width="55" source="#picThisAssistant#" name="thumbPicThisAssistant"> <cfimage action="WRITETOBROWSER" source="#thumbPicThisAssistant#"> I just wanted to share this for a couple reasons: in case a like-minded individual runs into it and to ask if there /could/ be issues writing back to the same variable name during a resize. Thanks. -Nate ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;160198600;22374440;w Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:296261 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4