How to create a custom rendition to mixedmediasets in the AEM DAM programatically using java in AEMaaCS? | Adobe Higher Education
Skip to main content
Adobe Employee
April 3, 2024
Répondu

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

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-rendition-to-the-images-in-the-aem-dam/m-p/238233), 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.

Ce sujet a été fermé aux réponses.
Meilleure réponse par Keerthana_H_N

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-sets-programmatically-in-aem/td-p/608651

Thank You.

3 commentaires

Saravanan_Dharmaraj
Community Advisor
Community Advisor
April 3, 2024

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

Adobe Employee
April 4, 2024

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-sets-programmatically-in-aem/td-p/608651 ). 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? 

Raja_Reddy
Community Advisor
Community Advisor
April 8, 2024

Hi @keerthana_h_n 

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

Adobe Employee
April 15, 2024

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

kautuk_sahni
Community Manager
Community Manager
May 20, 2024

@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
Keerthana_H_NAdobe EmployeeAuteurRéponse
Adobe Employee
May 20, 2024

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-sets-programmatically-in-aem/td-p/608651

Thank You.