Apply different profiles with different renditions to different images upon upload? | Community
Skip to main content
jackyt53693190
November 5, 2015
Solved

Apply different profiles with different renditions to different images upon upload?

  • November 5, 2015
  • 1 reply
  • 514 views

Hello all. I was needing to know if there was a way I could set up different profiles for the different kinds of images I upload, so that some get certain renditions and some get others? For example, I want to be able to upload a group of images as "type 1" and all these images get the "thumb" and "zoom" and "main" images, and also upload a group of images as "type 2" and have them get just the "main" image preset. Is there a way to do this? 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by smacdonald2008

You need to explore looking at using a custom Dam handler and possibly a custom workflow for this use case. A Dam handler is invoked when you upload an asset.

See this article to get you up and running with a Dam handler.

https://helpx.adobe.com/experience-manager/using/damhandler.html

When writing a custom Dam handler, you use this api:

http://docs.adobe.com/content/docs/en/cq/5-6-1/javadoc/com/day/cq/dam/commons/handler/AbstractAssetHandler.html

There are a lot of subclasses you can look into using. 

1 reply

smacdonald2008
smacdonald2008Accepted solution
Level 10
November 5, 2015

You need to explore looking at using a custom Dam handler and possibly a custom workflow for this use case. A Dam handler is invoked when you upload an asset.

See this article to get you up and running with a Dam handler.

https://helpx.adobe.com/experience-manager/using/damhandler.html

When writing a custom Dam handler, you use this api:

http://docs.adobe.com/content/docs/en/cq/5-6-1/javadoc/com/day/cq/dam/commons/handler/AbstractAssetHandler.html

There are a lot of subclasses you can look into using.