Interactively...

Select the crop tool

Click an image to expose the image toolbar and select the crop tool:

Drag out a cropping rectangle

Drag a rectangle around the image area you want to retain:

Adjust the cropping rectangle if necessary

Drag the drag handles or frame to resize or reposition the cropping rectangle:

Crop the image

Click Crop to crop the image. Click outside of the image to turn off the toolbar:

Programmatically to Remove a Uniform Border...

Automatically trim a uniform border from an image with ImageCrop:

In[1]:=
Click for copyable input
Out[1]=

Programmatically to a Given Size...

Crop an image to 210×280 pixels, cropping slightly more on the right than on the left:

Out[2]=
  • 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:

Out[3]=

Programmatically, Extracting a Subimage by Coordinates...

Extract ranges of rows and columns with ImageTake:

Out[4]=

Negative values indicate rows or columns, counting backward from the end:

Out[5]=

Programmatically to Remove a Uniform Border...

Automatically trim a uniform border from an image with ImageCrop:

In[6]:=
Click for copyable input
Out[6]=

Programmatically to a Given Size...

Crop an image to 210×280 pixels, cropping slightly more on the right than on the left:

Out[7]=
  • 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:

Out[8]=

Programmatically to Remove a Uniform Border...

Automatically trim a uniform border from an image with ImageCrop:

In[9]:=
Click for copyable input
Out[9]=

Programmatically to a Given Size...

Crop an image to 210×280 pixels, cropping slightly more on the right than on the left:

Out[10]=
  • 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:

Out[11]=