While Cloudinary doesn't restrict the length of a URL, there are some limits which should be taken into consideration when constructing the URLs.
- Different browsers define different limits to the length of URLs.
- The transformation string may not exceed the length of 1024 characters
If this constitutes a problem, one should consider using named transformations - When fetching a remote image, its URL should not go above 255 characters (more information here). In such occurrences, you may prefer to explicitly upload the image by passing the remote URL as the "file" parameter to the upload method
Comments
2 comments
Can you please elaborate more on point.2 ?
If the url contains multiple transformations, does the 1024 limit applies to individual transformation or all transformations?
For example
https://demo-res.cloudinary.com/image/upload/c_fill,h_80,w_80/e_brightness:100,h_80,u_site_bg.jpg,w_80/smartphone.png
Hi,
Thanks for reaching out.
The 1024 chars limitation applies to the sum of all transformation components in the URL.
Please sign in to leave a comment.