Image Transformation not working
I have a worker that makes fetch calls with resizing options using the following code. But the image doesn't actually get resized. The headers contain
cf-cache-status: HIT
but not Cf-Resized
as I expected based on the docs - https://developers.cloudflare.com/images/reference/troubleshooting
What am I doing wrong?
Cloudflare Docs
Troubleshooting | Image Resizing · Cloudflare Image Optimization docs
Does the response have a Cf-Resized header? If not, then resizing has not been attempted. Possible causes:
5 Replies
Logs from a sample request without
Cf-Resized
header. The image size isn't resized based on the size of the returned base64 data
The worker needs to be running on a custom domain or route on a zone that has image resizing enabled
So I'm running the api at
api.sakura.fm
and transformations are enabled and there is even some bandwidth usage for resizing, but I'm not sure why this request doesnt get resizedThis is for the domain
sakura.fm