For Workes & Pages, what is the name of the domain?
What is the issue or error you’re encountering
How to Dynamically Change Image Size with Cloudflare Images?
What steps have you taken to resolve the issue?
Hi everyone,
As a junior developer, I was looking for a solution to avoid using srcset and hard-coding image transformations. I thought Cloudflare Images could offer this service, as mentioned on the Cloudflare Images homepage:
“Automatically deliver the best size and format by device and browser type, without hard-coding image transformations.”
However, I seem to be missing something because I can’t find a way to make the image sizes change automatically.
I’ve read the documentation and searched for guides or topics on the web, including on this forum, but I haven’t had any success. I’ve tried using variants and flexible variants with custom URLs, but still, the image size doesn’t seem to change based on the device’s width.
So, what am I missing? What are we supposed to do to make image sizes adjust dynamically?
Sorry for the lack of knowledge—I’m still learning. Any help would be appreciated!
Thank you!