cfimage and crop with direct links
Hello,
I need some advice..
I want to have users reference images from my site but only certain sections (IE: http://somedomain.com/getimg.cfm?ID=123§ion=1). Below is the code I have but it only outputs a variable like coldfusion.image.Image@174e3a9 rather than the actual image. I understand cfimage has a writeToBrowser action but that outputs html source which wont allow my users to have a direct link.
<cfprocessingdirective suppresswhitespace="yes">
<cfimage source="d:\test.jpg" name="myImage">
<cfset ImageCrop(myImage,0,0,534,474)>
<cfcontent type="image/jpeg" >
<cfoutput>#myImage#</cfoutput><!--- does not output actual image --->
</cfprocessingdirective>
