How to transform a portrait image to landscape by adding padding

Follow

Comments

4 comments

  • Avatar
    bixente veronne


    let s that your example (picture 1) I want to get at the end the image on the left and not center as in the example i want the resulting=>  (picture 2)

    Let me know please if it's possible because sometimes people prefer to display picture like this 💁🏼‍♀️ i can't find the solution with Cloudinary

     

    ❤️hope that someone has an idea, and that my question will help 

     

    picture1

     

    picture 2 

     

    0
    Comment actions Permalink
  • Avatar
    Yakir Perlin

    Hey Vincent,

    Something like this (g_west)?

    http://res.cloudinary.com/demo/image/upload/h_1.0,ar_3:2,c_pad,b_rgb:6A854E,g_west/butterfly.jpg

    Please let me know if it helps you.

    Cheers

    Yakir

     

    1
    Comment actions Permalink
  • Avatar
    bixente veronne

    Yes this is it ❤️ thanks that sound very good ! 💪🏽 the key value doc ruby rails for g_west (:gravity=>"west") ? ??

    example : 

    :quality=>"auto:good"

    THANKS A LOT

     

     

    0
    Comment actions Permalink
  • Avatar
    Yakir Perlin

    Exactly:

    :gravity=>"west"

    Next time, please don't wait 5 months, we are here to help :)

    Cheers,

    Yakir

    2
    Comment actions Permalink

Please sign in to leave a comment.