Skip to main content

Increase Background Dimensions



  • Tia Esguerra

    Hi Patrick, 

    Thanks for reaching out. 

    Yes, you can do this by using the c_pad transformation. What this does is resize the image to the dimensions you specify, keeping all parts of that image visible ( nothing is cropped out ). If the aspect ratio of the original image is not the same as the aspect ratio of the dimensions you specified, padding will be added. The padding will be white by default. 

    You can see the original sample image here, where the aspect ratio is 3:2

    And you can see here that I have asked for the image to be a square -  1:1 aspect ratio, by including the c_pad transformation,h_300,w_300/sample.jpg 

    You can reference our documentation on the c_pad transformation here: 

    I hope this helps. Let me know if you have any questions. 

    Kind Regards, 


  • Patrick Hyde

    Hi Tia,

    Thank you, this worked for me! 

  • Kate Breish

    @Tia Esguerra Hi!  Our company is running into the same issue, but we are working with images that do not have pure white backgrounds.  Is it possible for a content-aware fill to be added when increasing the background of an image to make it 1:1?  Also is it possible for a code to be written so that, in automating this process when downloading, that it could ignore files with "DE" in them and instead crop into those?  We are not equipped to write this coding ourselves, would your coders be able to create something custom for us?

    Thanks in advance!



Post is closed for comments.