Offload, Store, Resize & Optimize with Cloudflare Images


Tired of using expensive CDN plugins that charge ridiculous amounts for something that should be free? Offload your media library to Cloudflare Images and let it handle everything for you – store, resize, optimize and deliver images in the best possible format to your users.

Note from the developer: The plugin is a work in progress, which I created for my personal use, because I got tired with image optimization plugins ignoring real user needs or overcharging for services. If something is not working as expected, or you want a feature added to the plugin, please create a support request, and I will do my best to make it happen.

Cloudflare, the Cloudflare logo, and Cloudflare Workers are trademarks and/or registered trademarks of Cloudflare, Inc. in the United States and other jurisdictions.

سکرین شاٹاں

  • Plugin options and settings
  • Quick and easy setup wizard

انسٹال کرݨ

  1. Upload the plugin to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. Follow the instructions in the setup wizard through the ‘Media – Offload Settings’ menu in WordPress
  4. Enjoy

ہرہک دے سوال

How does this work?

The plugin will use the Cloudflare Images service to host all supported images and serve them with the best possible settings to the user.

Is this free?

Yes, the plugin is 100% free. A Cloudflare account with activated Cloudflare Images option is required.
Cloudflare may charge a fee for the use of this feature, depending on the plan used.

What are the supported image formats?

You can upload the following image formats to Cloudflare Images:
* WebP

Are there any other limitations?

These are the maximum allowed sizes and dimensions Cloudflare Images supports:

  • Images’ height and width are limited to 10,000 pixels.
  • Image metadata is limited to 1024 bytes.
  • Images have a 10 megabyte (MB) size limit.
  • Animated GIFs, including all frames, are limited to 100 megapixels (MP).

Why are not all images being replaced in content?

This is just a first iteration of the plugin. I have tested it over a set of projects that I deployed to my clients.
If something is not working for you, please let me know by creating a support ticket on the plugin support forums.


اپریل 2, 2023 1 reply
I've been using the 'Offload, Store, Resize & Optimize with Cloudflare Images' plugin on my WordPress site for a few days now, and I have to say, I'm impressed. This plugin seamlessly integrates with Cloudflare's image CDN to deliver images quickly and efficiently, saving my server's resources and bandwidth. Overall, I highly recommend this plugin to any WordPress user who use Cloudflare and looking to improve their site's image delivery performance and reduce server load.
مارچ 16, 2023 1 reply
Sounds great, but need more setup info. I tried the automated set up, with luck. After editing WP_config. I believe it is working. Now is were a better guide would help out for us nubies. Can you show more on what payments to cloud flair, How do I know what images are actual been sent to cloud flair and there various sizes.
مارچ 6, 2023 3 replies
Super happy to see an integration with Cloudflare Images. Highly functional and seems to be working well with Rank Math, Breakdance and other plugins. I hope to see an option to offload all current images one day! 🙂
مارچ 5, 2023 1 reply
Excellent work, it saves us from all the headaches and time consuming work. just a request if you can put up a noob friendly instructional post/video for all the beginners, explaining Step by Step, it would be great. Though its just straight forward we just have to connect the plugin to our cloudflare image api, and offload and the rest will be taken care by cloudflare and they will serve the images automatically. But I again emphasis a noob friendly , instructional post or video will help us a lot. Regards
فروری 8, 2023 2 replies
Works great. Instructions clear and easy to follow. Only suggestion is to make it clear that you need to use list view to view the upload status of files. Took a little while to figure this out.
فروری 1, 2023 1 reply
Great plugin, thanks for the awesome job you've done. It seems to be better than 2 other paid solutions I've used. The only question is, how to delete files from the server to keep them only in cloudflare?
سارے 14 ریویو پڑھو

Contributors & Developers

“Offload, Store, Resize & Optimize with Cloudflare Images” is open source software. The following people have contributed to this plugin.

حصہ پاوݨ آلے

“Offload, Store, Resize & Optimize with Cloudflare Images” has been translated into 1 locale. Thank you to the translators for their contributions.

“Offload, Store, Resize & Optimize with Cloudflare Images” دا آپݨی زبان وچ ترجمہ کرو۔

ڈیویلپمنٹ وچ دلچسپی ہے؟

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.

تبدیلی لاگ

1.2.0 – 29.03.2023

* Auto image sizes on front-end
* Option to use custom paths for images
* Confirmation modal for bulk remove action
* Offload status to media library grid mode
* Detailed setup guide link in the setup wizard

* Improved descriptions for the plugin settings
* Improve settings layout
* Intentionally sleep for a second after setup to allow the PHP cache to expire on setup/disconnect
* Various UI/UX improvements

* Properly handle already uploaded images and duplicates
* Prevent replacing images in wp-admin, because WordPress does not respect is_admin() checks
* Scaled images having an empty ‘w’ parameter

1.1.5 – 28.02.2023

* Integration with RankMath Image SEO module
* Integration with Multisite Global Media plugin
* Option to disable async image offloading

* Store the Cloudflare image hash in network options on multisite installs
* Code refactor to be fully compatible with WordPress coding standards

* RankMath image titles not working properly with Cloudflare images
* TypeError in get_attachment_image_src method
* Removed debug code

1.1.4 – 29.01.2023

* Links in readme.txt file

1.1.3 – 29.01.2023

* Compatibility with “Spectra – WordPress Gutenberg Blocks” plugin
* cf_images_upload_meta_data filter to allow customizing the metadata sent to Cloudflare Images

* Improve detection of image sizes, fallback to scaled image dimensions
* Improved compatibility with RankMath – og:image tags will not be converted to Cloudflare Image URLs

* Image file names on subdirectory multisite installs

1.1.2 – 19.11.2022

* Support for WooCommerce bulk product uploads
* Allow defining a custom domain for the Cloudflare Images service
* Option to skip images in media library from offloading
* Button to disconnect from Cloudflare

* On network installs, plugin can now only be activated on the network level
* When bulk uploading, if no metadata is found for an image – skip the image, instead of failing the whole process
* Minor UI/UX improvements
* Improved compatibility with WordPress 6.1

* Settings redirect to media library after saving

1.1.1 – 24.10.2022

* Improved button styling
* Allow skipping the setup wizard with CF_IMAGES_ACCOUNT_ID and CF_IMAGES_KEY_TOKEN defines

* Argument #1 ($metadata) must be of type array, bool given error

1.1.0 – 09.09.2022

* Global API stats
* Option to disable auto offload
* New and improved UI
* New plugin icon

* Remove autocomplete for setup form fields
* Incorrect stats calculations
* Reset image stats, when no offloaded images found in media library
* Offloading images on servers with outdated SSL libraries

1.0.3 – 05.09.2022

* Fatal error in rare cases


* Support for scaled images
* Detect API key changes or other auth issues

* Improve code quality

* Do not replace images on the editor


* Image statistics

* Better handling of unsupported media types
* Improve UI and UX

* Failed bulk offload if an image path is not defined in metadata
* PHP fatal error with Spectra plugin
* Incorrect status during bulk offload


First release
* Offload images to Cloudflare Images
* Option to disable WordPress image sizes
* Support for custom domains