Crop 2D Images
Interactively...
Select the crop tool
Click an image to expose the image toolbar and select the crop tool:
![](Files/Crop2DImages.en/1.png)
Drag out a cropping rectangle
Drag a rectangle around the image area you want to retain:
![](Files/Crop2DImages.en/2.png)
Adjust the cropping rectangle if necessary
Drag the drag handles or frame to resize or reposition the cropping rectangle:
![](Files/Crop2DImages.en/3.png)
Crop the image
Click Crop to crop the image. Click outside of the image to turn off the toolbar:
![](Files/Crop2DImages.en/4.png)
Programmatically to Remove a Uniform Border...
Automatically trim a uniform border from an image with ImageCrop:
Programmatically to a Given Size...
Crop an image to 210×280 pixels, cropping slightly more on the right than on the left:
![](Files/Crop2DImages.en/5.png)
- A cropping fraction of –1 means crop on left (bottom), 0 means crop equally on left and right (bottom and top) and 1 means crop on right (top).
Programmatically, Trimming a Given Amount...
Trim given amounts from the sides of an image using ImagePad with negative values:
![](Files/Crop2DImages.en/6.png)
Programmatically, Extracting a Subimage by Coordinates...
Extract ranges of rows and columns with ImageTake:
![](Files/Crop2DImages.en/7.png)
Negative values indicate rows or columns, counting backward from the end:
![](Files/Crop2DImages.en/8.png)
Programmatically to Remove a Uniform Border...
Automatically trim a uniform border from an image with ImageCrop:
Programmatically to a Given Size...
Crop an image to 210×280 pixels, cropping slightly more on the right than on the left:
![](Files/Crop2DImages.en/9.png)
- A cropping fraction of –1 means crop on left (bottom), 0 means crop equally on left and right (bottom and top) and 1 means crop on right (top).
Programmatically, Trimming a Given Amount...
Trim given amounts from the sides of an image using ImagePad with negative values:
![](Files/Crop2DImages.en/10.png)
Programmatically to Remove a Uniform Border...
Automatically trim a uniform border from an image with ImageCrop:
Programmatically to a Given Size...
Crop an image to 210×280 pixels, cropping slightly more on the right than on the left:
![](Files/Crop2DImages.en/11.png)
- A cropping fraction of –1 means crop on left (bottom), 0 means crop equally on left and right (bottom and top) and 1 means crop on right (top).
Programmatically, Trimming a Given Amount...
Trim given amounts from the sides of an image using ImagePad with negative values:
![](Files/Crop2DImages.en/12.png)