In Servebolt Optimizer for WordPress we include a feature which implements the necessary filters in WordPress to make use of Cloudflare’s Image Resize feature. The Image Resize feature in Cloudflare dynamically and automatically resizes your images based on the fly.
This feature, in combination with the
srcset parameter on
<img> tags in HTML makes browsers load the best image size for the visitors browser size.
To activate the Cloudflare Image Resize feature in Servebolt Optimizer you must set a constant in your wp-config.php like this:
define( 'SERVEBOLT_CF_IMAGE_RESIZE_ACTIVE', true );
You can read more about the Image Resize feature in the announcement post at the Cloudflare Blog.
On what plans is Cloudflare Image Resize support available?
Cloudflare Image Resize support is available if you have one of the following plans:
- Servebolt Cloudflare Business
If you want the Cloudflare Image Resize support feature and are not on one of these plans, please have a chat with our customer success team and they will do their best to accommodate you.
Give us your feedback on this article
Did this help you?
Want to speed up your site, easily?
Set up your site on Servebolt, free of charge for 60 days, and see for yourself how fast it can be on our extremely fast hosting.
A faster site converts better, ranks better on Google, and is better for the climate.