Using commas and slahes in text overlay
Hello,
I'm, using the node.js sdk to transform image and create text overlays. I have user generated content in form of text, which I have to put on an image as an overlay.
Those texts could contain special characters like commas and slashes. I tried everything but no matter what I do they end up on the final image with %2F or %2C.
I tried everything:
- I justed pased the text in plain to the url method of the sdk (like stated in the docs)
- I tried to quote the text before passing it to the method
- I tried to double quote the text before passing it to the method
Any idea what could be the problem?
-
Hi there,
Thank you for reaching out.
To use special characters like commas and slashes, you need to double-escape them. Click here to see how documentation is on it.
Here is an example as well:
https://res.cloudinary.com/demo/image/upload/w_500/l_text:Arial_40:Cool%252Ctext%252Fyes/flowers.jpg
Please let me know if you have any other questions or queries.
Kind Regards,
Thomas
Post is closed for comments.
Comments
3 comments