Title: Cloudflare Image Resizing &#8211; Optimize &amp; Accelerate Your Images
Author: Mecanik1337
Published: <strong>8 مارس، 2022</strong>
Last modified: 11 مارس، 2026

---

البحث عن الإضافات

![](https://ps.w.org/cf-image-resizing/assets/banner-772x250.png?rev=2939112)

![](https://ps.w.org/cf-image-resizing/assets/icon-256x256.png?rev=2939112)

# Cloudflare Image Resizing – Optimize & Accelerate Your Images

 بواسطة [Mecanik1337](https://profiles.wordpress.org/mecanik/)

[تنزيل](https://downloads.wordpress.org/plugin/cf-image-resizing.1.5.9.zip)

 * [تفاصيل](https://ar.wordpress.org/plugins/cf-image-resizing/#description)
 * [المراجعات](https://ar.wordpress.org/plugins/cf-image-resizing/#reviews)
 *  [التنصيب](https://ar.wordpress.org/plugins/cf-image-resizing/#installation)
 * [التطوير](https://ar.wordpress.org/plugins/cf-image-resizing/#developers)

 [الدعم](https://wordpress.org/support/plugin/cf-image-resizing/)

## الوصف

Elevate your site’s performance with this plugin that dynamically optimizes and 
resizes images using the [Cloudflare Image Resizing](https://blog.cloudflare.com/announcing-cloudflare-image-resizing-simplifying-optimal-image-delivery/)
service.

Experience a significant speed boost by delivering AVIF/WEBP images from Cloudflare’s
global locations directly to your users’ browsers.

The plugin utilizes the fastest available PHP functions, without any database calls,
ensuring minimum overhead in performance. Your website’s speed will not be compromised,
but it will noticeably improve.

### Benefits

 * Refines your images, delivering higher clarity and enhanced quality, as opposed
   to standard WordPress cropping which often reduces image quality.
 * Supercharges your website speed, offering users an improved, faster experience
   by loading images from Cloudflare CDN, far quicker than traditional servers.
 * Boosts your SEO significantly due to superior website performance and speed.
 * Relieves your web hosting of heavy load, as asset loading is a prominent issue
   for servers, particularly Apache.
 * Conserves substantial bandwidth on your web hosting, an especially noticeable
   benefit for websites featuring numerous images/photos.

### How does this work?

The Cloudflare Image Resizing plugin for WordPress enhances your site’s speed and
performance by automating image resizing using Cloudflare’s advanced technology.
But how exactly does this work? Let’s simplify it.

Usually, when you upload an image to your WordPress site, it creates multiple sizes
of the image to fit different screen sizes, which can slow down your site. This 
plugin eliminates that issue.

The plugin taps into WordPress’s image management functions and changes the final
URLs of the images in your site’s HTML code. Instead of pointing to the images on
your server, these URLs now point to Cloudflare’s Image Resizing service.

When users visit your site, they aren’t just served images. Cloudflare resizes and
optimizes these images on-the-fly, ensuring they’re perfectly sized for their device,
enhancing load times and user experience. All this happens behind the scenes, making
your website faster without any extra effort from you!

### Current features

 * Substitutes all attachment/single image source URLs.
 * Replaces all multiple image source set URLs.
 * Revises all other image source URLs found within the content.
 * Provides the original image to Cloudflare Image Resizing service for efficient
   cropping.
 * Supplements missing image default sizes (width/height), enhancing Google Page
   Insights scores.

### Compatibility

 * Latest WordPress and PHP 7+
 * All general themes
 * MAI Themes and Genesis Framework
 * DIVI Themes
 * Content Areas (formerly Template Parts)
 * Editor plugins like Visual Composer
 * Optimization plugins like WP Rocket

### Notes

 * Before using this plugin please ensure **you have turned ON** the Cloudflare 
   Image Resizing feature for your domain.
 * If your WordPress resides in a sub-folder, adjust the plugin settings by specifying
   the folder name.
 * You have the option to tweak quality settings, though it’s generally best to 
   stick with the default configuration.
 * If images aren’t being re-written as expected, consider enabling more “hooks”.
   If the issue persists, feel free to open a support ticket.
 * The plugin allows for whitelisting of images sourced from platforms like Facebook,
   Twitter, Instagram, PayPal, etc.

### Quick Guide and Tips

#### Checking if Cloudflare Image Resizing is Working

Once you’ve activated the Cloudflare Image Resizing plugin, you might be wondering
how to check if it’s doing its job. Here’s a quick way to verify:

 1. With your site open, activate the developer console in your browser. This is typically
    done by right-clicking on your webpage and selecting “Inspect” or “Inspect Element”.
 2. In the console, navigate to the “Network” tab.
 3. Reload your webpage. You should now see a list of items that are being loaded on
    your page. You’re interested in the images.
 4. Look for any image files in this list (they’ll typically end in .jpg, .png, etc.).
    Click on an image to view more details.
 5. Look at the URL or the response headers for that image. If you see reference to
    the Cloudflare Image Resizing format, it means your plugin is working correctly
    and your images are being optimized.

#### Addressing Filename Issues

The Cloudflare Image Resizing plugin works by identifying the images on your site
and applying optimizations. However, it can get confused if the filenames of your
images are too complex or contain multiple dimensions.

For example, an image file named “image-100×200-100×300.jpg” might not be processed
correctly. If you find that some images aren’t being resized, consider renaming 
these files and re-uploading them to your site. Simpler names, like “image1.jpg”
or “product-shot.jpg”, are usually best.

Remember, the goal of image resizing is to deliver the most optimal version of an
image for every user. So, it’s always a good idea to test this functionality on 
different devices and browsers to ensure all your users are getting the best experience
possible.

### Need Expert Support?

Feeling stuck? For hands-on help optimizing your plugin settings or improving your
WordPress site, I’m here for you.

Check out my [Consulting Services](https://mecanik.dev/en/consulting/) and let’s
take your website to the next level.

### Disclaimer

Please note that this plugin is developed and maintained independently, and is not
officially affiliated with or endorsed by Cloudflare Inc. This plugin simply makes
use of the image resizing feature offered by Cloudflare’s services. All trademarks
and copyrights belong to their respective owners. For any issues related to Cloudflare’s
services themselves, please contact Cloudflare’s support directly.

## لقطات الشاشة

 * [[
 * Example resized image savings
 * [[
 * Example plugin setup
 * [[
 * [[
 * [[

## التنصيب

#### If you’re installing from your WordPress Dashboard

 1. Navigate to “Plugins” and then click on “Add New”.
 2. In the search bar, type in “Cloudflare Image Resizing” and hit enter.
 3. Once you see our plugin, click on the “Install Now” button.
 4. After the installation is done, you can activate the Cloudflare Image Resizing 
    plugin from your Plugins page.

#### If you’re installing from WordPress.org

 1. Download the Cloudflare Image Resizing plugin.
 2. Next, you’ll need to upload the “cf-image-resizing” directory. You can do this 
    by using a file transfer protocol (like FTP, SFTP, SCP, etc.) to move it to your“/
    wp-content/plugins/” directory.
 3. Once the upload is complete, go back to your WordPress site and navigate to your
    Plugins page.
 4. Here you’ll see Cloudflare Image Resizing listed among your plugins. Just click
    on the “Activate” button next to it, and you’re all set!

## الأسئلة المتكررّة

### Will this plugin slow down my website?

Not at all. The plugin has been engineered with a focus on speed optimization. It
eliminates database calls and utilizes highly efficient PHP functions to ensure 
optimal performance, ultimately enhancing your site’s speed.

### Will this affect my existing SEO?

No, this plugin is designed to improve your SEO, not hinder it. Faster load times
from image optimization contribute positively to your site’s SEO rankings. Better
page speed, improved performance, and optimized images can boost your site’s position
on search engine results pages.

### Will this affect my existing URLs?

The plugin will replace your existing image URLs with URLs from Cloudflare’s Image
Resizing service in the final HTML output. However, this should not affect the rest
of your site’s URLs or overall site functionality.

### Does this preserve image metadata?

The plugin is focused on optimizing and resizing images, and it removes image metadata.
You can change this by editing the config.php, please see below.

### Is Cloudflare Image Resizing feature free to use?

Cloudflare Image Resizing feature is a paid add-on in their Pro, Business, and Enterprise
plans, and not available in the free plan. For the most current information, please
refer to the Cloudflare website.

### Does this plugin optimize images in real-time?

Yes, this plugin optimizes and resizes your images on-the-fly. As soon as an image
is requested, it is processed and served by Cloudflare’s Image Resizing service,
providing optimal image delivery with minimal delay.

### Will this plugin help improve my Google Page Insights score?

Absolutely. By optimizing your images and speeding up your website, this plugin 
can help to improve your Google Page Insights score. The quicker your site loads,
the better your user experience and the higher your potential score.

### How do I configure the Cloudflare Image Resizing options?

Please visit the settings page. Each option is explained in detail for easy understanding.

### Can I enable extra options for image resizing?

Please visit the settings page. Each option is explained in detail for easy understanding.

### Can I exclude specific image sources from Cloudflare Image Resizing?

Yes, you can. However you need to edit manually the config.php as of this writing.
If CF_IMAGE_RESIZING_WHITELIST is set to TRUE, the plugin will bypass images coming
from the domains listed in CF_IMAGE_RESIZING_WHITELIST_URLS. This is useful for 
excluding images from sites like Facebook, Twitter, etc.

## المراجعات

![](https://secure.gravatar.com/avatar/43ad2403a85302a676db82fd9a1c9a76043024a2460f229e4c1d2bff175d9081?
s=60&d=retro&r=g)

### 󠀁[THANKS FOR THIS PLUGIN](https://wordpress.org/support/topic/thanks-for-this-plugin-81/)󠁿

 [c4co](https://profiles.wordpress.org/c4co/) 9 مارس، 2026

I’ve tried to use the cloudflare rewrite url feature to apply cloudflare images 
on my featured images, but it didn’t work. So i used grok, ask him how i could use
images on my website. it said this plugin would be helpful. I tried it and it really
worked!

![](https://secure.gravatar.com/avatar/2ae3215c78cebc8f67dc9fba8eb268a05fbbdc68859aaaf0dae869c2c893fd61?
s=60&d=retro&r=g)

### 󠀁[Great plugin!](https://wordpress.org/support/topic/great-plugin-40819/)󠁿

 [what1](https://profiles.wordpress.org/what1/) 6 سبتمبر، 2025

Great, thanks

![](https://secure.gravatar.com/avatar/a3d528de3ac38ae09d2b519bf5c66a4697a07ff94f09124553baa1f5a47f6327?
s=60&d=retro&r=g)

### 󠀁[Thank you for the awesome plugin](https://wordpress.org/support/topic/thank-you-for-the-awesome-plugin-3/)󠁿

 [invokers](https://profiles.wordpress.org/invokers/) 12 يناير، 2025

Lightweight and Fast as Fu.. rious…

![](https://secure.gravatar.com/avatar/41e3f61cd1126f53c7153c1bd3fb8ea2be45be6641a6eb2e84be3fe20ff7bbb5?
s=60&d=retro&r=g)

### 󠀁[Doesn’t work](https://wordpress.org/support/topic/doesnt-work-3146/)󠁿

 [leprebro](https://profiles.wordpress.org/leprebro/) 10 سبتمبر، 2024

This plugin just broke all images on site into 404 until deactivated.

![](https://secure.gravatar.com/avatar/3e48554a4635c0561806b34bee31eaa35622f71a173555b530bc1bdcc31d2960?
s=60&d=retro&r=g)

### 󠀁[Excellent plugin](https://wordpress.org/support/topic/excellent-plugin-9142/)󠁿

 [nimonogi](https://profiles.wordpress.org/nimonogi/) 11 مايو، 2024

Works as advertised.

![](https://secure.gravatar.com/avatar/3f8be1aeb6d45f5b8bd31761d2896ad903c2c2fbbdfffd1d97c584e29dcdc6a0?
s=60&d=retro&r=g)

### 󠀁[Excellent](https://wordpress.org/support/topic/excellent-13297/)󠁿

 [alexbovey](https://profiles.wordpress.org/alexbovey/) 3 مارس، 2024

Works out of the box with no configuration required – thanks!

 [ إقرأ جميع المراجعات 17 ](https://wordpress.org/support/plugin/cf-image-resizing/reviews/)

## المساهمون والمطوّرون

“Cloudflare Image Resizing – Optimize & Accelerate Your Images” هو برنامج مفتوح 
المصدر. وقد ساهم هؤلاء الأشخاص بالأسفل في هذه الإضافة.

المساهمون

 *   [ Mecanik1337 ](https://profiles.wordpress.org/mecanik/)

لقد تم ترجمة ”Cloudflare Image Resizing – Optimize & Accelerate Your Images“ إلى
لغة واحدة. شكراً إلى جميع [المُترجمين](https://translate.wordpress.org/projects/wp-plugins/cf-image-resizing/contributors)
لمُساهماتهم.

[ترجمة ”Cloudflare Image Resizing – Optimize & Accelerate Your Images“ إلى لغتك.](https://translate.wordpress.org/projects/wp-plugins/cf-image-resizing)

### مُهتم بالتطوير؟

[تصفّح الشفرة](https://plugins.trac.wordpress.org/browser/cf-image-resizing/)، تحقق
من [مستودع SVN](https://plugins.svn.wordpress.org/cf-image-resizing/)، أو الاشتراك
في [سجل التطوير](https://plugins.trac.wordpress.org/log/cf-image-resizing/) بواسطة
[RSS](https://plugins.trac.wordpress.org/log/cf-image-resizing/?limit=100&mode=stop_on_copy&format=rss).

## سجل التغييرات

Version 1.5.9

 * Removed old hosting link

Version 1.5.8

 * Fixed an issue where the content filter (Hook 6) was not rewriting image URLs
   correctly.
 * Improved image URL replacement to produce properly quoted HTML attributes.
 * Improved path validation in image size detection.
 * Improved image file extension matching to support uppercase extensions and prevent
   false positives.
 * Improved debug output escaping.
 * Fixed database query to respect custom table prefixes.
 * Performance improvements for the attribute escape and clean URL hooks.

Version 1.5.7

 * Patched CVE-2025-8723 and implemented additional hardening measures.
 * Enhanced overall plugin security and input validation.
 * Added more configuration options to the settings interface for greater customization.

Version 1.5.6

 * Tested up to WordPress 6.8.2

Version 1.5.5

 * Tested up to WordPress 6.4.3
 * Support more images

Version 1.5.4

 * Tested up to WordPress 6.4.1
 * Fixed bug in plugin deactivation feedback

Version 1.5.3

 * Added deactivation feedback
 * Fixed bug with shortcut links
 * General code improvements

Version 1.5.2

 * Fixed Spelling

Version 1.5.1

 * Automatic configuration on new install
 * New settings page
 * Bugfixes and improvements
 * SVG support (sanitize SVGs, but not resize them)

Version 1.5

 * Applied latest changes from Github

Version 1.4

 * Tested up to WordPress 6.2.2
 * Updated readme

Version 1.3

 * Rewrite: The plugin was re-written to include fixes for all the bugs reported
   via github, new features (and flexibility to add more features), configurable
   settings/options and more.
 * Tested up to WordPress 5.9.1
 * Tested for several weeeks on several large production websites

Version 1.2

 * Bugfixes and improvements

Version 1.0

 * Initial release of the plugin

## ميتا Meta

 *  Version **1.5.9**
 *  Last updated **قبل شهر واحد**
 *  Active installations **200+**
 *  WordPress version ** 5.0 أو أعلى **
 *  Tested up to **6.9.4**
 *  PHP version ** 7.0 أو أعلى **
 *  Languages
 * [English (US)](https://wordpress.org/plugins/cf-image-resizing/) و [Russian](https://ru.wordpress.org/plugins/cf-image-resizing/).
 *  [ترجمة إلى لغتك](https://translate.wordpress.org/projects/wp-plugins/cf-image-resizing)
 * Tags
 * [cloudflare](https://ar.wordpress.org/plugins/tags/cloudflare/)[image optimization](https://ar.wordpress.org/plugins/tags/image-optimization/)
   [image resizing](https://ar.wordpress.org/plugins/tags/image-resizing/)[pagespeed](https://ar.wordpress.org/plugins/tags/pagespeed/)
   [performance](https://ar.wordpress.org/plugins/tags/performance/)
 *  [عرض متقدم](https://ar.wordpress.org/plugins/cf-image-resizing/advanced/)

## التقييم

 4.5 من 5 نجوم.

 *  [  15 5-star reviews     ](https://wordpress.org/support/plugin/cf-image-resizing/reviews/?filter=5)
 *  [  0 4-star reviews     ](https://wordpress.org/support/plugin/cf-image-resizing/reviews/?filter=4)
 *  [  0 3-star reviews     ](https://wordpress.org/support/plugin/cf-image-resizing/reviews/?filter=3)
 *  [  0 2-star reviews     ](https://wordpress.org/support/plugin/cf-image-resizing/reviews/?filter=2)
 *  [  2 1-star reviews     ](https://wordpress.org/support/plugin/cf-image-resizing/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/cf-image-resizing/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/cf-image-resizing/reviews/)

## المساهمون

 *   [ Mecanik1337 ](https://profiles.wordpress.org/mecanik/)

## الدعم

مشكلات تمّ حلها في آخر شهرين:

     1 من 1

 [عرض منتدى الدعم](https://wordpress.org/support/plugin/cf-image-resizing/)

## تبرع

هل ترغب في تقديم دعم متقدم لهذه الإضافة؟

 [ تبرع لهذه الإضافة ](https://github.com/sponsors/Mecanik)