Returning Nothing when applying certain transformations
Hello,
I am trying to add a caption like in this example transformation:
When I try this same transformation with my own photo, it doesn't do anything:
But this works on the same image:
http://res.cloudinary.com/ufunny/image/upload/w_100/photo.jpg
Is it a setting I'm not aware of or something else entirely? Thank you!
-
In the Developers Tool's console you're getting the following HTTP response header:
X-Cld-Error:Unknown or invalid layer image black_bar of type upload
Meaning that an image with a public ID of 'black_bar', which you are asking for in your URL, was not found on your Cloudinary account.
0 -
The text overlay example doesn't describe it, but you actually need an image in your media library named "black_bar" which is flat black. Once that's created you reference with "l_black_bar" to add it as an overlay.
0 -
A newly introduced feature we have that can help you here is the ability to use fetched images as overlay.
Before using it we need to escape the image by encoding it to base64 -
The original image -
http://res.cloudinary.com/demo/image/upload/black_bar
its Base64 encoding -
aHR0cDovL3Jlcy5jbG91ZGluYXJ5LmNvbS9kZW1vL2ltYWdlL3VwbG9hZC9ibGFja19iYXI=
And now use it in the URL with `l_fetch:` instead of the older `l_black_bar` -
This feature is currently only supported with dynamic URLs, SDK support is on its way...
0
Post is closed for comments.
Comments
3 comments