Issue with OOB Renditions

Maddy737

13-02-2017

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

Answers (2)

Answers (2)

Maddy737

13-02-2017

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

Digant_Tyagi

Employee

13-02-2017

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.