Edited image not returning valid URL
I'm following this tutorial https://cloudinary.com/blog/placing-images-on-curved-surfaces-through-displacement-mapping
and I'm stuck at the displacement part. It doesn't return a valid image URL,
This is the URL it returns
https://res.cloudinary.com/da3clivij/e_displace,l_gradients:gradient,x_20,y_20/logo?_a=BAMCkGRi0
which is put into an image tag, but the image tag doesn't recognize or finds the image at all. I'm not sure what I'm doing wrong,
I followed the tutorial here
But my code doesn't return a valid URL
Answers
-
Hi there,
If you try and access this URL via the browser you'll see that it returns a 400 error. Looking at the x-cld-error message via the networks tab we see the message: "Unknown or invalid referenced image gradients/gradient of type upload: Resource not found - gradients/gradient"
Looking in your account I can see the asset's public_id is "gradient".
Updating the URL, and it is now successful:
https://res.cloudinary.com/da3clivij/e_displace,l_gradient,x_20,y_20/logo
Hope that helps,
Thanks!0