How to use an image from a sub-folder as an overlay?

Follow

Comments

7 comments

  • Avatar
    Christian

    Thank you for posting this, it took me forever to find. Not sure why this is undocumented (if it is, I couldn't find it)

    0
    Comment actions Permalink
  • Avatar
    Itay Taragano

    Thank you for pointing that out Christian.
    We'll definitely add that to our official docs as soon as possible.

    0
    Comment actions Permalink
  • Avatar
    Jason Shaw

    Thanks for pointing that out! However, it doesn't seem like 'cloudinary_url' function is generating the right link...

    0
    Comment actions Permalink
  • Avatar
    Roee Ben Ari

    Hi, Jason. Could you please share an example so we take a closer look at it?

    0
    Comment actions Permalink
  • Avatar
    Kevin Paulson

    I was creating filmstrips using overlays but the url generated no longer worked after I started placing photos in subdirectories. This article saved the day for me. Thanks!

    0
    Comment actions Permalink
  • Avatar
    Aptapp

    What if the two images are inside different sub folders?

    e.g.

    Image #1: https://res.cloudinary.com/demo/image/upload/subfolder_x/sample_image1.jpg
    Image #2: https://res.cloudinary.com/demo/image/upload/subfolder_y/sample_image2.jpg

    How to overlay this two images?

    Thanks in advance

    0
    Comment actions Permalink
  • Avatar
    Aditi Madan

    Hi,

    You can add as many overlays as you want separated by a slash. Since you are giving multiple overlays you can specify the x and y coordinates for the overlays or use gravity feature to place them.

    http://res.cloudinary.com/<cloud_name>/image/upload/l_subfolder_1:sample_1/l_subfolder2:sample_2,x_<enter x_co-ordinate>,y_<enter y_co-ordinate>/main_image.png

    0
    Comment actions Permalink

Please sign in to leave a comment.