Offload, AI & Optimize with Cloudflare Images


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.

Why Overpay for CDN Plugins?

With the avalanche of expensive plugins out there, it’s time to switch to a smarter choice. Why should you pay more for something that deserves to be free?

Simplify Your Image Management

Offload your media library to Cloudflare Images! Let our plugin take charge:

  • Store your images securely;
  • Resize images to perfection without any manual hassle;
  • Optimize them to ensure they load blazingly fast;
  • Deliver in the most user-friendly format, ensuring satisfaction at every user’s end.

But wait, there’s more!

Image CDN – deliver images from a global network of servers.
Image AI – tag, caption and generate new images using AI.
Compression – optimize JPEG/PNG images to decrease file size without compromising visual quality.

A Developer’s Promise

Born from personal need, this plugin represents a developer’s dedication to the community. While it’s still a work in progress, remember – it’s crafted with real user needs in mind, not profit.

Your Feedback Makes Us Better

Found a hiccup? Yearning for a feature? Just shoot us a support request. Our commitment is to continually evolve to serve you better. Your wish is our command!


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


Special thanks to the plugin sponsors:

WordPress Agency this:matters


  • Plugin options and settings
  • Plugin AI modules
  • 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?

By default, the plugin relies on WordPress core functions to process images.
Some themes and plugins can implement their own image processing functions, which can prevent the plugin from replacing the image URLs in content. If you are experiencing this, try to enable the Parse page for images module in the plugin settings.
If something is still not working for you, please let me know by creating a support ticket on the plugin support forums.


26 Bealtaine, 2024 1 reply
This is a well deserved 5 ⭐️ review because the developer built a flawless integration with the Cloudflare Images API. For the benefit of those on hosting, as I am, I’ll leave some notes on my experience. In frank confession, I’m no perf expert, so I could absolutely be off base here, and not even realize it. Rocket had previously announced auto-image resizing via CF Images as a platform feature; but this was subsequently rolled back, and the reasons for the rollback were never given. So, I decided to attempt implementing this myself; and this plugin made the integration seamless. Here’s what my dev tools network panel tests uncovered: Rocket’s CF configuration does not serve AVIF, only WebP; whereas this integration successfully serves AVIF. Rocket’s CF configuration results in less image compression than what this direct integration achieves. However, even with inferior compression, and no serving of AVIF, Rocket’s CF configuration manages to somehow beat the millisecond load time per image by orders of magnitude. I chatted in with Rocket’s unparalleled tech support to get schooled on why this is, and I’m paraphrasing and adding embellishments, but the reasons for this are twofold: Rocket apparently has a special relationship with Cloudflare Enterprise, so they get über-priority treatment on the network. Then add CF Enterprise full-page caching to the above fact that your visitors are getting served from the edge-of-the-edge network priority afforded by Rocket. As I said, I’m no perf expert, so I don’t feel the need to back any of this up with screenshots, or any other evidence. Please take this information only as prompting to do your own network panel tests. In the end, I removed all images from Cloudflare Images API that were offloaded via this plugin, deactivated, and uninstalled; then went with ShortPixel for AVIF. As regards the dynamic auto-resizing that I was after, I’m just gonna have to go over all the markup and manually insert the proper thumbnail (tedious manual work I was hoping to avoid, and what started me down this rabbit hole). Peace to the dev; and happy hacking to all.
12 Márta, 2024 1 reply
Super awesome plugin…found this after tried several other plugins including wp-offload which is a total rip-off crap. I was looking to develop such a plugin myself just to find this guy did it and gave it away for free. Well done, sir! I recommend the pro features as well.
22 Eanáir, 2024 3 replies
I installed and setup this plugin and CF images which was the first time using either and it was super smooth. I personally need the features talked about in the PRO version, like auto-deleting the file locally after upload, as my use case is saving server space. Currently, that is a manual step, which isn’t feasible with 20k+ images. Otherwise, great stuff.
25 Nollaig, 2023 1 reply
Been using it for a while, offloading is great. Highly Recommended!
1 Nollaig, 2023 1 reply
Really wanted to like this as it seems to be the only plugin to get Cloudflare Images resizing working, but I’ve never gotten it to successfully communicate with Cloudflare and even with it’s logs feature it’s very very fussy and difficult to debug. It’ll gladly act like your API key is valid when it isn’t and look like it’s processing but it isn’t. Mine’s stuck in a state of 8 images offloaded (really zero) and even the cloudflare global API key won’t actually allow it to login. Really hope it gets improved because it’s a great idea, but it’s absolutely not turnkey
Read all 27 reviews

Contributors & Developers

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


“Offload, AI & Optimize with Cloudflare Images” has been translated into 2 locales. Thank you to the translators for their contributions.

Translate “Offload, AI & Optimize with Cloudflare Images” into your language.

Interested in development?

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


1.9.2 – 17.07.2024

* Integration with WPBakery page builder image galleries
* Integration with Elementor Pro Gallery
* Integration with Flatsome theme gallery
* cf_images_upload_host filter to adjust the image host ID

* Improve image AI modules
* Improve performance when Rank Math image SEO is active

* Only allow generating image alt text for supported formats (JPEG, PNG, GIF, BMP)
* Duplicate queries for images that are not part of the media library
* Rank Math image SEO module not working with custom domains

1.9.1 – 23.04.2024

* Integration with Elementor lightbox

* NaN undefined error in compression savings stats
* AI image captioning when custom image paths are set
* WPML compatibility
* “Disable WordPress image sizes” option causing issues with image URLs

1.9.0 – 22.03.2024

* Set browser TTL for images
* Option to serve originals for logged-in users
* Option to apply settings network wide in multisite

* Disable logging in wp-admin
* Improve detection of cropped images
* Fallback to scaled images if original image is larger than 20 Mb

* Image size can now be changed in the Gutenberg image block for fully offloaded images
* Full size images not replaced in the gallery block on expand
* Multiple fixes and improvements with the WPML integration

1.8.0 – 16.02.2024

* Support for RSS feeds
* Auto crop option. If an image width matches the image height – auto crop the image.
* Use img width size. New option that allows using the img width attribute value for the image size, if the value is smaller than the requested image.
* Bulk remove files from the media library.
* Bulk restore files to the media library.

* Page parser will now add the wp-image-* class to images that do not have it
* Page parser not detecting images that have a custom title set in the media library

1.7.1 – 31.12.2023

* Fatal error on plugin uninstall
* Do not bulk offload SVG images
* Compatibility with Gutenberg Interactivity API
* Type error when fetching image hashes

1.7.0 – 03.12.2023

* Bunny CDN integration
* Service tools module – reset ignored images
* Custom URLs module – control your image links
* Track stats for images served via Cloudflare Images
* REST API integration module

* UI/UX improvements

* Notices getting injected into plugin navigation
* Do not expose internal methods to WP CLI commands
* WP CLI command only processing the first 10 images
* Auto resize feature using incorrect descriptors
* Page parser not replacing all images
* Expand on click functionality

1.6.0 – 12.11.2023

* Generate images with AI
* Logging module
* Images in media library can now be sorted by offload status
* Integration with ShortPixel
* Compatibility option to store credentials in the database

* Increase timeout to 15 seconds when offloading images

* Bulk processing stops if an image triggers an error during upload
* Settings resetting on update after using a beta version

Full changelog.