Image transforms via Worker/Workflow not working

I'm encountering a strange issue where my image transformations aren't working at all.

I have a pretty basic request, fetching an image from an external domain. I can confirm that the Cf-Resized header is
null
and the Content-Type header is un-changed (image/jpeg).

    const image = await fetch(imageUrl, {
        cf: {
            image: {
                format: "webp",
            },
        },
    });

    console.log(
        "Image headers, post-transform",
        image.headers.get("Cf-Resized"),
        image.headers.get("Content-Type"),
    );


I'm calling this from within a Workflow, in case that matters. I do have Image Transformation enabled for the zone in which the worker is running. I'm not running this on a worker.dev domain, this is in the expected zone (but on a sub-domain). I have confirmed that Image Transformations are working with another worker within the same zone, so the only thing difference is the use of a Workflow. Is there something that I'm missing here? Thanks!
Was this page helpful?