Expand my Community achievements bar.

Introducing Adobe LLM Optimizer: Own your brand’s presence in AI-Powered search and discovery
SOLVED

Resize Image without distorting

Avatar

Community Advisor

Hello,

 

Is it possible to resize images to a certain aspect ratio, without cropping / distorting using Dynamic Media?

 

These are images with transparent background, so we can use additional padding of transparent background to avoid distortion. 

 

How can we possibly achieve the same?


Aanchal Sikka

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hi @aanchal-sikka ,

Have tried using Dynamic Media Command references ? These are used in Image Presets too or you can dynamically add them via code too.

 

We have used them while downloading images.

anupampat_0-1743086591915.png

 

https://experienceleague.adobe.com/en/docs/dynamic-media-developer-resources/image-serving-api/image...

 

Regards,

Anupam Patra

View solution in original post

1 Reply

Avatar

Correct answer by
Community Advisor

Hi @aanchal-sikka ,

Have tried using Dynamic Media Command references ? These are used in Image Presets too or you can dynamically add them via code too.

 

We have used them while downloading images.

anupampat_0-1743086591915.png

 

https://experienceleague.adobe.com/en/docs/dynamic-media-developer-resources/image-serving-api/image...

 

Regards,

Anupam Patra