---
updatedAt: 2026-10-06T21:16:32.000Z
agentTools:
  siteIndex: https://techdocs.akamai.com/llms.txt
  projectIndex: https://techdocs.akamai.com/ivm/llms.txt
---

# Reduce an image to fill a shape

Use Image and Video Manager to reduce an image to fill a shape.

You can use the **Fit and Fill** transformation to resize an image to fit inside a specific size box on your website and, when there is an aspect ratio mismatch, fill the extra area with a blurred version of the same image. This helps preserve the integrity of your page layout while making your website more visually appealing.

# Example of the impact on images

Here's an example of an image before and after it was reduced to fill a box on a website.

**Original image**:

![original image](https://techdocs.akamai.com/ivm/img/unprocessed-mountains-v1.png)

**With Fit and Fill applied (vertical fill)**:

![](https://techdocs.akamai.com/ivm/img/uc-fit-fill-vertical-v1.png)

**With Fit and Fill applied (horizontal fill)**:

![reduced image with horizontal fill](https://techdocs.akamai.com/ivm/img/uc-fit-fill-horizontal-v1.png)

# How to

1. From the Control Center menu, click **Content delivery > Edge applications > Image & Video Manager**.

2. Select the correct **Contract** from the list.

3. Create a new policy:

   * Click **+Create**, then click **Policy** on the menu that appears.
   * Select the policy set to which you wish to add the new policy.
   * Give your new policy a name, for example, "fit\_and\_fill".
   * Click **Create**.

   The Image Policy Editor opens.

4. Click **+** to open the list of **Transformations**.

5. Click **Fit and Fill**.

6. Specify the width and height in pixels of the finished image.

   If you prefer, you can select variables containing the width and height.

7. Refresh the preview pane to preview your transformation.

8. Click **Save and Test on Staging**.

# Sibling pages

* [Adapt for slow connections](https://techdocs.akamai.com/ivm/docs/adapt-for-slow-connections.md)
* [Add text overlay to an image](https://techdocs.akamai.com/ivm/docs/add-text-overlay.md)
* [Add a company logo or watermark to an image](https://techdocs.akamai.com/ivm/docs/add-logo-watermark.md)
* [Convert Animated GIF to MP4](https://techdocs.akamai.com/ivm/docs/convert-animated-gif-to-mp4.md)
* [Create a mobile-friendly hero image](https://techdocs.akamai.com/ivm/docs/create-hero-image.md)
* [Crop around important faces or features](https://techdocs.akamai.com/ivm/docs/smart-crop-faces-features.md)
* [Create a scaled thumbnail](https://techdocs.akamai.com/ivm/docs/create-scaled-thumbnail.md)
* [Crop an image](https://techdocs.akamai.com/ivm/docs/crop-an-image.md)
* [Crop around a focal point](https://techdocs.akamai.com/ivm/docs/crop-around-focal-point.md)
* [Display images using the filename or path](https://techdocs.akamai.com/ivm/docs/display-using-path-or-filename.md)
* [Dynamically resize images](https://techdocs.akamai.com/ivm/docs/dynamically-resize-images.md)
* [Resize images to fit an image grid](https://techdocs.akamai.com/ivm/docs/resize-images-to-fit-grid.md)
* [Resize images using pristine image dimensions](https://techdocs.akamai.com/ivm/docs/resize-images-using-pristine-image-dimensions.md)
* [Select a specific derivative image or video](https://techdocs.akamai.com/ivm/docs/select-specific-derivative.md)
* [Share a policy across multiple properties](https://techdocs.akamai.com/ivm/docs/shared-policy-sets.md)
* [Use a placeholder video](https://techdocs.akamai.com/ivm/docs/add-placeholder-video.md)
* [Use query string parameters to apply transformations](https://techdocs.akamai.com/ivm/docs/use-query-string-param-to-change-images.md)
* [Validate optimization using Piez](https://techdocs.akamai.com/ivm/docs/validate-using-piez.md)