Crop an image

Cut an image down to an area you specify.

Use cropping to remove unwanted background from an image and eliminate distractions. The Crop transformation lets you select the size and position of a box indicating the portion of the image to preserve.

Here's our image before and after it was cropped:

To crop any image, locate the URL of the image you want to crop. For example, the URL for this image is:

https://www.travelanywhere.com/Place_Archive/0502/citysun.jpg

How to

  1. Go to > CDN > Image and Video Manager.
  2. Select a contract and a policy set name, then click Manage Policies.
  3. Click Add New Policy.
    The Name Your Policy window appears:
  4. Enter Crop in the Policy Name field and click OK.
    The Image Policy Editor appears:
  5. Add the Crop transformation by expanding the Transformation menu and selecting Crop.
  6. The crop configuration screen appears.
  7. Specify 600 and 300 to set the size of your cropped image in the Width and Height fields.
  8. Indicate placement of the crop box by selecting Center in the Crop Gravity field. This shows where you want to crop the image based on the X and Y positions.
  9. Set the Horizontal Offset to 20 and the Vertical Offset to 10 to place the center of the crop box 20 pixels to the right of the left edge and 10 pixels up from the bottom edge. If the crop box falls partially outside of the borders of the original image, you could set Allow Expansion to Yes to extend the borders of the original image to encompass the entire crop box.
  10. Save the Crop policy and go to the URL for the image on your staging web site.
  11. Apply the impolicy query string parameter to the end of the URL as follows: https://www.travelanywhere.com/Placet_Archive/0502/citysun.jpg?impolicy=Crop
    The following image now appears:

Next steps

For more information about adding artistic transformations to images, see the Image and Video Manager Help.