Skip to main content

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

Comments

7 comments

  • 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
  • Itay Taragano

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

    1
  • Jason Shaw

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

    0
  • Roee Ben Ari

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

    0
  • 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
  • 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
  • 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

Please sign in to leave a comment.