Expand my Community achievements bar.

Fetch text from an asset

Avatar

Level 7

Hi Community,

 

I have a requirement where I need to crop the text part of an asset or crop out the whitespace of an asset, these are generally for packshot product images where a certain part contains the text. As an example this image has the a text area where it has the Product name - fresh sugar lychee... and some details

Screenshot 2025-02-27 143009.png

Should get something like this

anupampat_0-1740663168183.png

 

Is is possible to achieve this with Adobe sensei or any Sling/Java Library or Dynamic media ?

Ps - Using AEM cloud & Dynamic media

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

4 Replies

Avatar

Community Advisor

Avatar

Level 7

Hi @arunpatidar ,

I realised I forgot to mention it has to be done dynamically cropped for multiple images. So using a core component is not an option.

It's like, when an asset is uploaded, I run a workflow which crops out the whitespace & all that remains is the text area.

Avatar

Community Advisor

Avatar

Administrator

@anupampat Did you find the suggestions helpful? Please let us know if you need more information. If a response worked, kindly mark it as correct for posterity; alternatively, if you found a solution yourself, we’d appreciate it if you could share it with the community. Thank you!



Kautuk Sahni