Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

DAM Rendition workflow | Rendition file name (just have width) - cq5dam.thumbnail.100.png

rohitspathak123
Level 4
Level 4

Hi,

 
We are using OOB CQ DAM workflow for creating renditions. We donot want to add any customization code to the workflow. 
 
We have below requirement
1) In the workflow we need to specify only width for rendition (height should be calculated automated by workflow to keep aspect ratio same). We see that in OOB workflow it has option to enter width and height. If we just enter "width" then it does not creates the rendition. This means "height" is required attribute.
 
2) Also the resulting rendition file name should only have width in it (and not <width>.<height>) We just want to specify width and height should be calculated automatically by OOB workflow to keep aspect ration same for rendition image.
 
For example:
We want the rendition file name to be 
cq5dam.thumbnail.450.png
 
Instead of 
cq5dam.resized.450.200.png (where 200 is the height)
 
Are these 2 requirement possible using OOB workflow. 
 
Thanks in advance.
1 Accepted Solution
smacdonald2008
Correct answer by
Level 10
Level 10

Yeah - there is not too much documentation on with workflow. I will work with the AEM doc team to see if we can get this addressed by getting out of the box workflows documented. 

ANyhow - i did find this blog: 

http://blogs.adobe.com/contentmanagement/tag/dam-update-asset/

It looks like the workflow needs both width and height for the workflow to work. 

The only way to make it do what you want to to write a custom step and then add application logic to calculate the height. ( I know you do not want to add any customization code to the workflow). 

View solution in original post

7 Replies
smacdonald2008
Level 10
Level 10

What version of CQ are you using? 

Second  - can you please post the URL to the Workmodel. For example: 

http://localhost:4502/cf#/etc/workflow/models/dam/update_asset.html

rohitspathak123
Level 4
Level 4

Hi smacdonald2008,

Thanks for looking in this. I am using AEM 6.1. Let me send you the path to workflow shortly.

smacdonald2008
Level 10
Level 10

I am trying to reproduce your issue. Can you post the screen shot of where you invoke it too. 

rohitspathak123
Level 4
Level 4

Hi,

Its this OOB workflow

http://localhost:4502/cf#/etc/workflow/models/dam/update_asset.html

Thanks for your wait. Please find all screen shot attached. This will give you idea what we are trying to do.

smacdonald2008
Level 10
Level 10

Let me look into this - this is exactly what i wanted. Thanks for the information. 

smacdonald2008
Correct answer by
Level 10
Level 10

Yeah - there is not too much documentation on with workflow. I will work with the AEM doc team to see if we can get this addressed by getting out of the box workflows documented. 

ANyhow - i did find this blog: 

http://blogs.adobe.com/contentmanagement/tag/dam-update-asset/

It looks like the workflow needs both width and height for the workflow to work. 

The only way to make it do what you want to to write a custom step and then add application logic to calculate the height. ( I know you do not want to add any customization code to the workflow). 

rohitspathak123
Level 4
Level 4

Thanks smacdonald2008 so much for looking into this.

 

Yes see if you can talk to AEM team. This will be very useful feature in OOB DAM workflow.