Dynamic media smart crop doesn't return image with focused section | Community
Skip to main content
Rohit_Utreja
New Participant
June 9, 2023
Solved

Dynamic media smart crop doesn't return image with focused section

  • June 9, 2023
  • 2 replies
  • 737 views

We have a smart crop image processing profile created with 4 variations.  These rendition can be see in the author mode and can be edited for every individual image in AEM. 

 

When we use assets with these smart crop renditions on a page, URL is changing based on the screen size but asset focus is not.

for example, both URLs mentioned below are rendering the image with different size(width & height), whereas it should display different variations of smart-crop renditions with pre-defined image focus areas.

https://xyz.scene7.com/is/image/abcdef/imageabc:Very-Small
https://xyz.scene7.com/is/image/abcdef/imageabc:Large

 

very-small and large are name of smart-crop renditions.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by ManviSharma

Hi,

 

The URLs you mentioned are rendering the image with different sizes, but they are not specifically targeting the smart-crop renditions. To display the different variations of smart-crop renditions with pre-defined image focus areas, you need to append the rendition name to the URL using the "wid" parameter.

 

For example:

 

https://xyz.scene7.com/is/image/abcdef/imageabc?wid=very-small https://xyz.scene7.com/is/image/abcdef/imageabc?wid=large

 

By including the "wid" parameter with the rendition name, the image will be rendered with the specific smart-crop rendition and its associated focus area.

2 replies

ManviSharma
ManviSharmaAccepted solution
Employee
June 12, 2023

Hi,

 

The URLs you mentioned are rendering the image with different sizes, but they are not specifically targeting the smart-crop renditions. To display the different variations of smart-crop renditions with pre-defined image focus areas, you need to append the rendition name to the URL using the "wid" parameter.

 

For example:

 

https://xyz.scene7.com/is/image/abcdef/imageabc?wid=very-small https://xyz.scene7.com/is/image/abcdef/imageabc?wid=large

 

By including the "wid" parameter with the rendition name, the image will be rendered with the specific smart-crop rendition and its associated focus area.

EstebanBustamante
New Participant
June 9, 2023

If you see the preview in the asset's rendition rail menu, are you seeing the wrong variation reflected? It sounds like the rendition maybe not be published correctly, Can you try to republish the rendition? and check that this made to DynamicMedia?

Esteban Bustamante