Does Cloudflare support query parameters for image transformations?

For Workes & Pages, what is the name of the domain?

example.com

What is the issue or error you’re encountering

Cloudflare does not support query parameters for image transformations directly in the URL. Instead, Cloudflare uses a specific URL path format to apply transformations to images via its Image Resizing feature. Is there any workaround to achieve image transformations using query parameters, such as: https://example.com/cdn-cgi/image/path/to/image.jpg?width=300&height=300&fit=cover

1 Like

Hi there,

To better use our product of Images Transformations please have our document related to it:

Hope it helps, cheers!

Hi @JaimeC ,

Thank you for the document. I have reviewed it but did not find any information related to query parameters. Could you please confirm if there are any plans to provide an option for image transformation through query parameters in the near future?

Thanks!!

There are two options that would work:

  • Set up a Worker that parses the URL for the query string, then translates the query to our optimization parameters.
  • Alternatively, you can set up a rule in the dashboard to rewrite your URLs to make them compatible with the transformation URL structure. Note: This approach requires a Business or Enterprise plan.
2 Likes

Hi @deanna,

Thank you for your support. It is greatly appreciated.

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.