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
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?
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.