Expand my Community achievements bar.

How to mask the image in AEM?

Avatar

Level 9

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. 

Mario248_0-1730905693399.png

 

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?

11 Replies

Avatar

Level 9

Customer is on-prem. Is firefly free ? any license required ?

Avatar

Level 9

This is exactly want I am looking for 

Mario248_0-1731589968453.png

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

Avatar

Level 9

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

Avatar

Community Advisor

@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/dynamicme...

 

Avatar

Level 9

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

Avatar

Community Advisor

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

Avatar

Level 6

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

Avatar

Level 9

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

Avatar

Administrator

@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