How can I use ColdFusion to crop an image?
Use the imageCrop() function.
<!---Read in the image --->
<cfimage action="read" name="myImg" source="foo.jpg">
<!--- Crop to 50x50 pixels starting at X = 1 & Y=1.
<cfset imageCrop(myImg,1,1,50,50)>
This question was written by Jeremy Petersen
It was last updated on December 10, 2007.