2 images into 1
Hi,
In Google Sheet, I have 2 columns, each one with a different image (URL).
I would like to create a single image with the 1st one above the 2nd one.
Is there an easy way to do it for a totally newbie on Cloudinary ?
Thank you in advance.
-
Hi Aymard,
The simplest way to do this in Cloudinary is to use the feature overlay (l_ in URLs) with placing the vertical (y_ in URLs) position of the 2nd image.
I am not sure if the URL you have mentioned is a Cloudinary URL (images uploaded to Cloudinary), but if it is, you can use the public id in the overlay. For example, I have these two Cloudinary images:
https://res.cloudinary.com/demo/image/upload/face_top.jpg
https://res.cloudinary.com/demo/image/upload/butterfly.jpg
To place the `face_top` image on top of the `butterfly `image with a vertical position of 550px, you can use the URL:
https://res.cloudinary.com/demo/image/upload/l_butterfly,y_550/face_top.jpgHowever, if the overlaying image is a remote URL, you can use l_fetch and the base64 encoded URL of the remote image. For example, both URLs are remote, and you fetch them both (I will use the same URLs above but to a different cloud). Using base64 of the `butterfly` image URL: aHR0cHM6Ly9yZXMuY2xvdWRpbmFyeS5jb20vZGVtby9pbWFnZS91cGxvYWQvYnV0dGVyZmx5LmpwZw==
The resulting URL will be:
https://res.cloudinary.com/francistagbo/image/fetch/l_fetch:aHR0cHM6Ly9yZXMuY2xvdWRpbmFyeS5jb20vZGVtby9pbWFnZS91cGxvYWQvYnV0dGVyZmx5LmpwZw==,y_550/https://res.cloudinary.com/demo/image/upload/face_top.jpg
For the Google sheet, I think you can use some functions in order to build the URLs.
0
Post is closed for comments.
Comments
1 comment