ImageCrop()
Crops an image to a specified rectangular area.
Requires Extension: Image extension
ImageCrop( image=any, x=number, y=number, width=number, height=number );
Returns: void
Examples
img=imageRead("https://avatars1.githubusercontent.com/u/10973141?s=280&v=4")
imageCrop(img,50,10,100,100);
cfimage(action="writeToBrowser", source=img);
See also
- Image manipulation
- image.crop()
- Search Issue Tracker
- Search Lucee Test Cases (good for further, detailed examples)