#Do I need to pass the entire R2 url to cloudflare images resizing?
6 messages · Page 1 of 1 (latest)
You usually want to just use an R2 Custom Domain, and then you can just run image resizing on that same domain using a relative path
@pure shuttle I'm using a custom domain already, i have domain.com registered on CF and cdn.domain.com points to my r2
Do you mean remove the subdomain and pass the image path after?
No, keep the subdomain, just make sure you have that domain enabled under Image -> Transformations for resizing
Then you can just use it to resize, ex an image on
https://cdn.domain.com/myimage.png could be resized via
https://cdn.domain.com/cdn-cgi/image/width=1800,quality=75,format=auto/myimage.png
or you can give it the full url, like
https://cdn.domain.com/cdn-cgi/image/width=1800,quality=75,format=auto/https://cdn.domain.com/myimage.png