Is it possible to create a workflow to convert entire DAM Assets(Images) to a different format?

Avatar

Avatar

jezwn

Avatar

jezwn

jezwn

09-01-2020

Working around with AEM page optimization, got a requirement to convert the DAM asset images to next-gen formats like webp. Is it possible to create a workflow to do the same. The workflow should access the DAM asset images and convert it to required format and rewrite the original file.

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar

Jörg_Hoh

Employee

Total Posts

3.0K

Likes

910

Correct Answer

1.0K

Avatar

Jörg_Hoh

Employee

Total Posts

3.0K

Likes

910

Correct Answer

1.0K
Jörg_Hoh
Employee

13-01-2020

This is easily possible. Extend the "asset update workflow" with a new step, which creates the new image as a rendition to the original asset. Do not try to replace the original rendition, as this is normally the workitem of the workflow, and removing/re-adding while the workflow is running is likely to cause issues.

Also, I don't think that replacing the original asset is a good idea either. If you need to create a more efficient way to deliver it, I would either require the users to upload the assets already in that format, or create it as a rendition and deliver it instead of the original rendition.

Answers (1)

Answers (1)

Avatar

Avatar

jbrar

Employee

Avatar

jbrar

Employee

jbrar
Employee

09-01-2020

OOTB, there is no way to convert but you can create custom workflow step [1] for the conversion and create a new workflow that includes this step and triggers based on the pre-defined launcher.

 

[1] https://helpx.adobe.com/experience-manager/using/creating-custom-aem-workflow-steps.html