Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save trycf/10261f1e2e3177d9894eb637d93d8591 to your computer and use it in GitHub Desktop.
Save trycf/10261f1e2e3177d9894eb637d93d8591 to your computer and use it in GitHub Desktop.
TryCF Gist
<cfscript>
img=imageRead("https://avatars1.githubusercontent.com/u/10973141?s=280&v=4")
cfimage(action="writeToBrowser", source=img);
imageCrop(img,50,10,100,100);
crop= {
image: image,
x: 50,
y: 10,
height: 100,
width: 100
};
imageCrop(argumentCollection=crop);
cfimage(action="writeToBrowser", source=img);
</cfscript>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment