Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

AEM set focus point on an image in assets

Avatar

Level 8

Hi,

Is there a way to find out in /crx/de if an image in assets has a focus point set? Any metadata used for focus point?

 

I searched for it in here but cannot find it:


 
Updating Media

Also how does one go about saving the "Set focus point" on the image? I cannot see any save option there.

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hi @anasustic,

 

As far as I know, there is no OTB metadata parameter for focal point in an AEM Asset.

The smart crop feature in Dynamic Media uses focal point internally to select asset according to breakpoint.

Rohan_Garg_0-1684317297490.png

Source - https://experienceleague.adobe.com/docs/experience-manager-cloud-service/content/assets/dynamicmedia...

 

You can try to use a npm library like focuspoint which allows you to view images in all different ratios after the user has defined a focus point (hot spot) in the image while uploading it.

Source - https://www.npmjs.com/package/focuspoint

 

Hope this helps!

 

View solution in original post

1 Reply

Avatar

Correct answer by
Community Advisor

Hi @anasustic,

 

As far as I know, there is no OTB metadata parameter for focal point in an AEM Asset.

The smart crop feature in Dynamic Media uses focal point internally to select asset according to breakpoint.

Rohan_Garg_0-1684317297490.png

Source - https://experienceleague.adobe.com/docs/experience-manager-cloud-service/content/assets/dynamicmedia...

 

You can try to use a npm library like focuspoint which allows you to view images in all different ratios after the user has defined a focus point (hot spot) in the image while uploading it.

Source - https://www.npmjs.com/package/focuspoint

 

Hope this helps!