Image and Video Manager allows you to use the desktop version of a hero image to automatically create a mobile-friendly version. A hero image is a large banner image that is typically prominently placed on a website. Creating a mobile-friendly hero image helps to ensure a consistent experience, regardless of the device being used to access your website.
To create the mobile-friendly hero image, you can use the Feature Crop transformation to crop around the most interesting features of the source image.
Here's an image before and after the feature crop transformation was applied. This original image is not typical of a hero image, but it's adequate to illustrate what can be accomplished using the Feature Crop transformation.
With feature crop applied:
The feature crop was used to crop around the main subject of the image.
Before you begin, you should know the URL of the image you want to crop—for example:
New Policy Manager UI
These instructions reflect the new beta version of Policy Manager. If you are using the original version, some things may have changed. To try the new beta, click Switch to BETA.
Log in to Akamai Control Center, then go to ☰ > CDN > Image and Video Manager.
Select the correct Contract from the list.
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, "mobile_hero".
- Click Create.
The Image Policy Editor opens.
Expand the list of Transformations by clicking +.
Click Feature Crop.
This transformation creates what's known as a region of interest by automatically identifying the most interesting features of your source image.
Specify the dimensions of your mobile-friendly hero image in the Width and Height fields. Here we've used 800x1200, but you can change this based on the mobile devices you're targeting.
Select Zoom from the Crop menu so that our region of interest occupies as much of our final mobile-friendly hero image as possible.
Add an additional area of the original image around the region of interest. Do this by setting the Padding value to .3. This value is a multiplier of the largest dimension of the region of interest.
To keep the region of interest centered in the final image, select Center from the Gravity menu.
Click Save and Test on Staging.
impolicyquery string parameter to the end of the URL as follows:
Updated about 1 year ago