Just a quick note about a change I did to RIAForge this morning. Before I go on however, please note that I can't answer any questions about this, so please do not ask.
So this morning I added screenshots to RIAForge. This means project owners can upload screenshots of their applications to help give people an idea of how their project looks. As an example, check out the screenshots I uploaded for Lighthouse Pro.
Did I do this with a third party extension or funky Java code? Nope, I just used the new <cfimage> tags in Scorpio. (Oh, did I mention RIAForge is running on Scorpio now? You should note that this is NOT allowed and is a violation of the NDA. But I was given special permission by the ColdFusion team to do this. Otherwise I'd be dead now. Seriously.) I have one tag to read in the uploaded image:
<cfimage action="read" name="yourimage" source="#ifile#">
and another few lines of code to do a quick resize for my thumbnail:
<!--- create a unique file name ---> <cfset tfilePath = fileupload.serverdirectory & "/" & replace(createUUID(),"-","_","all") & ".gif"> <!--- resize proportionally to 125 wide ---> <cfset imageResize(yourimage, 125,"")> <!--- save the sucker ---> <cfimage action="write" source="#yourimage#" destination="#tfilePath#">