Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.
SOLVED

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

Avatar

Level 6

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.

1 Accepted Solution

Avatar

Correct answer by
Employee Advisor

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.

View solution in original post

2 Replies

Avatar

Employee Advisor

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

Avatar

Correct answer by
Employee Advisor

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.