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

Web enabled images with fixed size

Avatar

Level 2

Hello Community,

we have a requirement to create renditions with fixed size. The problem is that aem always sizes the images along the ratio of the image and so a web enabled image which should be 1200x1200 has only a size of 1200x765 (for example) - which is good and totally okay!

But we need something like cropping an area with fixed size out of the center of the image.

is there any mechanism / workflow which can handle this? Or somebody who has similar problems / requirements?

Thank you for your help!

Thanks in advance,

Alex

1 Accepted Solution

Avatar

Correct answer by
Employee

You can use the ACS AEM Commons Matte Rendition workflow process to force a rendition to a particular size, filling in the “missing” pixels with a defined background color.

Rendition Matter

AFAIK The parameter mentioned above by ukgaurav is not available for the Web Enabled Image step in dam update workflow OOTB.

View solution in original post

5 Replies

Avatar

Level 2

Thanks for your quick answer.

I think that don´t matches our problem. the limitation gives us only the possibility to make "bigger" renditions.

we need renditions that have the exact size of our requirement.

e.g. an image of 1920x467 should create a rendition of  300x300 (as the real size of the image, not 300x25 for example). so forcing the resize workflow step is no option because the picture will be skewed. so we need another option to crop an 300x300 area out of the image.

Avatar

Correct answer by
Employee

You can use the ACS AEM Commons Matte Rendition workflow process to force a rendition to a particular size, filling in the “missing” pixels with a defined background color.

Rendition Matter

AFAIK The parameter mentioned above by ukgaurav is not available for the Web Enabled Image step in dam update workflow OOTB.

Avatar

Community Advisor

You can even try Image Magick I guess. I have not used , but have seen people using it in different projects

Thanks

Veena