Does image transformations work for Pages apps?
I have setup image transformations for my pages app, and followed this guide:
https://developers.cloudflare.com/images/transform-images/transform-via-workers/
But I cannot see it working. Are transformations not supported on pages?
I have my pages app on a domain in a zone, but it does not work on the zone either.
Transformations work fine through the /cdn-cgi/ URL
Cloudflare Docs
Transform via Workers | Cloudflare Images docs
Using Cloudflare Workers to transform with a custom URL scheme gives you powerful programmatic control over every image request.
2 Replies
It doesn't work since your Pages Function always "runs" on your pages.dev which you can't allow to run transformations, have to use an actual worker or cdn-cgi/
Yeah, I just deployed a worker on my domain, and it worked fine.
It should be added to the docs, if its not already there and I missed it.