Can a smart crop be resized using an image profile | Community
Skip to main content
typehack
Level 2
November 3, 2023
Solved

Can a smart crop be resized using an image profile

  • November 3, 2023
  • 1 reply
  • 767 views

Hello!

Is it possible to resize a smart crop using image modifiers IN an image profile? 

 

We have smart crop aspect ratios that are set in stone and not allowed to add additional ones. I am wondering if a workaround would be to use an image modifier (from the HTTP protocol commands) in the image profile? For example setting the scl= to scale the image down. 

 

I haven't been able to get it to work but maybe I'm doing something wrong.

Thanks!!

 

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 Saravanan_Dharmaraj

@typehack 

I am assuming you do want to deliver image from DM in smart crop ratio other than what you have in image profile. Below are steps it worked for me create the rectangle of the image using "rect" command in the url
1. Get the image ID from property image.version, from using ?req=props

     https://domain/is/image/root/image?req=props
2. Using the <ID> in the URL and use rect param

    https://domain/is/image/root/image?scl=1&op_usm=.9,2&bgc=ffffff&id=<ID>&rect=0,0,1800,300

You can play with rect values on what rect you want to show to user. 

please check this docs https://experienceleague.adobe.com/docs/dynamic-media-developer-resources/image-serving-api/image-serving-api/http-protocol-reference/command-reference/r-rect.html?lang=en 

 

1 reply

Saravanan_Dharmaraj
Community Advisor
Saravanan_DharmarajCommunity AdvisorAccepted solution
Community Advisor
November 7, 2023

@typehack 

I am assuming you do want to deliver image from DM in smart crop ratio other than what you have in image profile. Below are steps it worked for me create the rectangle of the image using "rect" command in the url
1. Get the image ID from property image.version, from using ?req=props

     https://domain/is/image/root/image?req=props
2. Using the <ID> in the URL and use rect param

    https://domain/is/image/root/image?scl=1&op_usm=.9,2&bgc=ffffff&id=<ID>&rect=0,0,1800,300

You can play with rect values on what rect you want to show to user. 

please check this docs https://experienceleague.adobe.com/docs/dynamic-media-developer-resources/image-serving-api/image-serving-api/http-protocol-reference/command-reference/r-rect.html?lang=en