Unique transformations onerror behavior

The docs mention: https://developers.cloudflare.com/images/pricing/#images-transformed
A unique transformation is defined as a request to transform an original image with a combination of supported flags ↗, with the exception of the format flag.

...

The format flag being exempted from counting as a unique transformation...
A unique transformation is defined as a request to transform an original image with a combination of supported flags ↗, with the exception of the format flag.

...

The format flag being exempted from counting as a unique transformation...
If I understand correctly, onerror flag is supported for url transfomations, but not transformations from within a worker: https://developers.cloudflare.com/images/transform-images/transform-via-url/#onerror
At the moment, this setting only works directly with image transformations and does not support resizing with Cloudflare Workers.
At the moment, this setting only works directly with image transformations and does not support resizing with Cloudflare Workers.
Does this mean an image with the same resizing params (url, width, height, onerror=redirect etc.) called from a /cdn-cgi url and called from a worker will count as 2 unique transformations? Since the docs above explicitly mention the format flag is exempted from counting as a unique transformation, but onerror isn't mentioned.
1 Reply
Chaika
Chaika4mo ago
Does this mean an image with the same resizing params (url, width, height, onerror=redirect etc.) called from a /cdn-cgi url and called from a worker will count as 2 unique transformations?
You can still set it in a worker, it just doesn't work/do anything. I would assume it's exempt from the unique transformations overall although only the Images team/PM could confirm that, they're active on the community forums: https://community.cloudflare.com/c/developers/images/63
Want results from more Discord servers?
Add your server