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

Resize Image without distorting

  • March 27, 2025
  • 1 reply
  • 411 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?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
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
Community Advisor
anupampatCommunity AdvisorAccepted solution
Community Advisor
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