Skip to main content

Resize image to a smaller size than the full canvas

Comments

3 comments

  • Shirly Manor

    In order to use padding with image, you can add padding.

    For example:

    http://res.cloudinary.com/demo/image/upload/w_300,h_600,c_lpad,g_south,b_gray/face_center.jpg

    After the padding, you can change the padding background color.

    Please let me know if that answered your question.

    0
  • Dennis Cassøe

    Thank you, I now see my example wasn't fully optimal to illustrate my problem, though the solution you describe solves the one shown on the image :) So thank you very much for that.

    Can you solve the one below. The image is scaled down on both width and height and then placed either on a larger canvas.

     

    0
  • Shirly Manor

    Hi Dennis,

    In order to change the size of the image and then use a larger image/background. you can use chain transformation.

    For example in this case:

    http://res.cloudinary.com/demo/image/upload/w_150,c_fill/w_300,h_600,c_lpad,g_south,b_gray/face_center.jpg

    Please let me know if that answered your question,

    0

Post is closed for comments.