How to have 2 images in one via fetch url?
Hello,
We're trying to achieve the following:
https://res.cloudinary.com/demo/image/upload/c_fill,w_373,h_160,o_50/l_actor/c_crop/c_fit,h_160,w_150/fl_layer_apply/actor.jpg
This works perfectly using the sample cloudinary image, but when we try it with our fetch url it does not work:
https://res.cloudinary.com/ouraccountname/image/fetch/w_373,h_160,c_fill,o_50/https://s3.amazonaws.com/s3-bucket/image.jpg/c_crop/w_246,h_320,c_fit/fl_layer_apply/https://s3.amazonaws.com/s3-bucket/image.jpg
Any idea what we're missing to get it to work?
-
Hi there,
In order to overlay a remote image URL, you can use the parameter l_fetch with the base64 encoded URL.
For example, in your image: https://res.cloudinary.com/ouraccountname/image/fetch/w_373,h_160,c_fill,o_50/l_fetch:aHR0cHM6Ly9zMy5hbWF6b25hd3MuY29tL3MzLWJ1Y2tldC9pbWFnZS5qcGc=/c_crop/w_246,h_320,c_fit/fl_layer_apply/https://s3.amazonaws.com/s3-bucket/image.jpg
You can learn more about this in the documentation:
https://cloudinary.com/documentation/transformation_reference#l_fetch
However, the URL you are trying to fetch is restricted so we cannot deliver the image.
https://s3.amazonaws.com/s3-bucket/image.jpgRegards,
Francis1 -
Works great, thank you so much!
0
Post is closed for comments.
Comments
2 comments