Developer forum

Forum » Rapido » Images leaving white space in container

Images leaving white space in container

Fabio Monte
Reply

Hello all

We are trying to find a solution to have images across the AgriCover website ( https://dev-aci.dw-demo2.com/products ), not having space filled in with white.

It seems setting the FillCanvas parameter to false solves the issue but then it brings another issue, which is having the product list misaligned as you can see from the screenshot.

And since we have several areas where this happens, we need to change the parameter in several templates ( viewdetails.cshtml, viewlist.cshtml, viewgrid.cshtml, promotionproducts.cshtml etc) .

We would like to know if there are a more straightforwars approach to remove white space?

Thanks.

ACI_ProductList.PNG

Replies

 
Hans Ravnsfjall
Hans Ravnsfjall
Reply
This post has been marked as an answer

Hi Fabio

Maybe changing crop=5 to crop=6 will get you the result you want?

Alternatively, you could try setting the background color to be the same as the background? eg. you can add background=000 to your imagehandler

https://doc.dynamicweb.com/documentation-9/platform/platform-tools/getimage-image-handler

 

/Hans

 

 

Votes for this answer: 1
 
Fabio Monte
Reply

Hi Hans

Thank you for your answer

I was able to set the background as you said but changed the FillCanvas settings in the product detail page.

Had to create a lot of custom helpers and replace the Rapido ones though

 

You must be logged in to post in the forum