Skip to main content
anupampat
Community Advisor
Community Advisor
Feb 27, 2025 1:36 PM UTC
Solved

Fetch text from an asset

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

Should get something like this

 

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

Ps - Using AEM cloud & Dynamic media

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
arunpatidar
arunpatidarAccepted solution
Community Advisor
Feb 28, 2025 12:04 PM UTC

4 replies

arunpatidar
Community Advisor
Community Advisor
Feb 27, 2025 3:45 PM UTC
anupampat
Community Advisor
anupampatCommunity AdvisorAuthor
Community Advisor
Feb 28, 2025 7:00 AM UTC

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.

Translate
arunpatidar
Community Advisor
arunpatidarCommunity AdvisorAccepted solution
Community Advisor
Feb 28, 2025 12:04 PM UTC
kautuk_sahni
Level 9
Mar 5, 2025 9:53 AM UTC

@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!

Translate
Kautuk Sahni