Resize Image without distorting | Community
Skip to main content
aanchal-sikka
New Participant
March 27, 2025
Solved

Resize Image without distorting

  • March 27, 2025
  • 1 reply
  • 407 views

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?

Best answer by anupampat

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.

 

https://experienceleague.adobe.com/en/docs/dynamic-media-developer-resources/image-serving-api/image-serving-api/http-protocol-reference/command-reference/c-command-reference

 

Regards,

Anupam Patra

1 reply

anupampat
anupampatAccepted solution
New Participant
March 27, 2025

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.

 

https://experienceleague.adobe.com/en/docs/dynamic-media-developer-resources/image-serving-api/image-serving-api/http-protocol-reference/command-reference/c-command-reference

 

Regards,

Anupam Patra