How to mask the image in AEM? | Community
Skip to main content
Mario248
Level 7
November 6, 2024

How to mask the image in AEM?

  • November 6, 2024
  • 4 replies
  • 1688 views

I am trying to convert an image to a masked image in AEM. For example, I have an image, and I want to apply a black-and-white mask, meaning the original image should be completely black. 

 

I know this can be done using the ImageMagick tool with the convert feature. Is there a way to accomplish this in Dynamic Media or using any AEM Assets API?

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

4 replies

arunpatidar
Community Advisor
Community Advisor
November 6, 2024
Mario248
Mario248Author
Level 7
November 14, 2024

This is exactly want I am looking for 

Is adobe app(adobe io) same as adobe Firefly ? or Is it two different adobe products ?

Mario248
Mario248Author
Level 7
November 18, 2024

Adobe Firefly is a licensed product. you can contact sales

https://www.adobe.com/creativecloud/business/enterprise/firefly-services.html 


Thanks for your response. customer is looking for open source. I will explore other open source tools

Harwinder-singh
Community Advisor
Community Advisor
November 6, 2024

@mario248 You can create an image mask using any of the available tools like photoshop, ImageMagick etc. You can use dynamic media to apply these to images at scale.

https://experienceleague.adobe.com/en/docs/experience-manager-cloud-service/content/assets/dynamicmedia/dm-journey/dm-best-practices#effects-inside-the-source-image

 

Mario248
Mario248Author
Level 7
November 11, 2024

We want to do this AEM workflow. can you tell how do you use photoshop here? is there java api or library available ?

Harwinder-singh
Community Advisor
Community Advisor
November 22, 2024

@mario248 You can setup a custom worker on Adobe I/O that takes care of this. You can then invoke this from within an AEM workflow. 

anupampat
Community Advisor
Community Advisor
November 7, 2024

Hi @mario248 ,

 

Although your requirement is to completely back out the image but you can put watermark on AEM assets using com.day.cq.dam.commons.watermark Library. Putting it here in case its relevant for you.

 
Regards,
Anupam Patra
Mario248
Mario248Author
Level 7
November 11, 2024

can you tell me what watermark api should used ? any example you can provide ?

kautuk_sahni
Community Manager
Community Manager
November 11, 2024

@mario248 Did you find the suggestions helpful? Please let us know if you require more information. Otherwise, please mark the answer as correct for posterity. If you've discovered a solution yourself, we would appreciate it if you could share it with the community. Thank you!

Kautuk Sahni