Expand my Community achievements bar.

SOLVED

Can a smart crop be resized using an image profile

Avatar

Level 2

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!!

 

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

@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-se... 

 

View solution in original post

1 Reply

Avatar

Correct answer by
Community Advisor

@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-se...