Wasted a bunch of time on two limitations of Cloudflare Image Resizing that Cloudflare’s support helped me identify. Hoping adding this here will help other people trying to get started with Image Resizing:
The short version
- You cannot use Polish and Image resizing together. If you have it turned on, Cloudflare will not generate images.
- The “Resize images from any origin” isn’t actually an option despite the docs, dashboard, and dashboard help indicating that’s possible.
The docs on Image Resizing say “Doesn’t apply Cloudflare’s Polish feature to resized images” but support clarified that “Unfortunately, there is a known issue with using Imagine Resizing and Polish together. When used together it can cause Imagine Resizing to not be applied if Polish is already being used. If you want to use Imagine Resizing we recommend disabling Polish it this case.”
Any origin == any origin under the zone that’s proxied through Cloudflare. While the docs under the Help section of the dashboard states “‘Resize images from any origin’ will allow Image Resizing to resize images from any URI.” Support clarified “In order for either Polish or Image resizing to trigger the images would need to be on the root domain or subdomain endpoint that is proxied through Cloudflare’s edge network.”