Expand my Community achievements bar.

Enhance your AEM Assets & Boost Your Development: [AEM Gems | June 19, 2024] Improving the Developer Experience with New APIs and Events
SOLVED

How to create a custom rendition to mixedmediasets in the AEM DAM programatically using java in AEMaaCS?

Avatar

Employee

Hi,

How can we programmatically generate custom renditions for mixed media sets in AEM? We referenced this HelpX solution (https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/how-to-create-a-custom-ren...), and while it worked for images, it didn't for mixed media sets. Can the same method be applied to generate renditions for media sets, or is there a different API available for creating custom renditions specifically for sets? Please let us know if anyone has worked on this scenario. 

Thank you.

Topics

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

1 Accepted Solution

Avatar

Correct answer by
Employee

Hi @kautuk_sahni ,

Found alternate API which is more suitable for automating mixed media set and it's working as expected. Below are the details:

SetHelper class has createSet api to create the set resource
and then updateSet api to add members to it as well as generate thumbnails these are all the set types we can pass in it

            S7damConstants.S7_IMAGE_SET,
            S7damConstants.S7_SPIN_SET,
            S7damConstants.S7_SWATCH_SET,
            S7damConstants.S7_MIXED_MEDIA_SET,
            S7damConstants.S7_VIDEO_SET,
            S7damConstants.S7_CAROUSEL_SET

it supports thumbnail generation as well 

Implementing using this method is creating the mixedmediaset automatically and adding the members from imageset, spinset and video.

Refer this doc for more info,
https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/how-to-create-mixed-media-...

Thank You.

View solution in original post

6 Replies

Avatar

Community Advisor

@Keerthana_H_N Mixed media set is combination of images, videos and image/spin sets. What is the expectation here ? Creating a rendition of each asset programmatically and form a new mixed media set? 

The help articles you used is for single asset using RenditionMaker service. 

Hi @Saravanan_Dharmaraj , 
We had a requirement to create mixedmediaset programmatically. We were able to create the mixedmideaset using jcr api by referring this document (https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/how-to-create-mixed-media-... ). We are not able to generate correct renditions of mixedmedasets which has the combination of imageset, spinset and video in it. We cannot use above api to generate the renditions for sets? 

Avatar

Community Advisor

Hi @Keerthana_H_N 

If you have found out solution yourself, please share it with the community.



Avatar

Employee

Not yet @Raja_Reddy , if your team is working on it can you please share the approach you are following?

Avatar

Administrator

@Keerthana_H_N Did you find the suggestions helpful? Please let us know if more information is required. Otherwise, please mark the answer as correct for posterity. If you have found out solution yourself, please share it with the community.



Kautuk Sahni

Avatar

Correct answer by
Employee

Hi @kautuk_sahni ,

Found alternate API which is more suitable for automating mixed media set and it's working as expected. Below are the details:

SetHelper class has createSet api to create the set resource
and then updateSet api to add members to it as well as generate thumbnails these are all the set types we can pass in it

            S7damConstants.S7_IMAGE_SET,
            S7damConstants.S7_SPIN_SET,
            S7damConstants.S7_SWATCH_SET,
            S7damConstants.S7_MIXED_MEDIA_SET,
            S7damConstants.S7_VIDEO_SET,
            S7damConstants.S7_CAROUSEL_SET

it supports thumbnail generation as well 

Implementing using this method is creating the mixedmediaset automatically and adding the members from imageset, spinset and video.

Refer this doc for more info,
https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/how-to-create-mixed-media-...

Thank You.