Expand my Community achievements bar.

SOLVED

Issue with OOB Renditions

Avatar

Level 4

Hi All,

Am facing issue with renditions generated by out of the box workflow. 

I have uploading an images for example: xxxx.png

and below rendions are generated

cq5dam.thumbnail.140.100.png
cq5dam.thumbnail.90.90.png
cq5dam.thumbnail.48.48.png
cq5dam.thumbnail.277.236.png

But when i check the dimesions for cq5dam.thumbnail.90.90.png, it is 90*44 instead of 90*90. For this reason editor has to manually crop.

Can someone help on this.

Thanks
Madhu

1 Accepted Solution

Avatar

Correct answer by
Employee
3 Replies

Avatar

Employee

Hi,

A thumbnail in AEM Asset is defined by the width:height:center triple. Width and height define the thumbnail size in pixel. The center parameter, which is set to false by default, decides the dimensions of renditions. 

If the center flag is set to true, the thumbnail image will have exactly the size given by the configuraiton otherwise it maintains the original image ratio to create renditions. 

You can modify the dam update asset workflow to set the center parameter to true to get exact size renditions.

Avatar

Level 4

hi tyagi,

Thank you for the solution.

Can you please provide any reference link on how to set center flag or throw some light about how to do that?

that would be really helpful.

Thanks

Madhu

Avatar

Correct answer by
Employee