CF Image Resizing

설명

Rewrites images on the fly so you can use the Cloudflare Image Resizing service.

You will speed up your website drastically by offering to browsers AVIF/WEBP images delivered from global locations thanks to Cloudflare.

Internally the plugin is developed to use the fastest functions from PHP available, without any database calls. There is zero to none overhead in performance, your website will not get slower, only faster.

Benefits

  • Enhances your images to become clearer and much nicer (from tests, wordpress cropping alters the image and becomes lower quality)
  • Speeds up your website to offer a better experience for users (images loaded from Cloudflare CDN is much faster than your server)
  • Improves your SEO (since your website performs much faster)
  • Removes strain from your web hosting (asset loading is one of the biggest problems for web servers, especially Apache)
  • Saves bandwith on your web hosting (there is a very significant save factor, especially on websites with many images/photos)

Current features

  • Replaces all attachment/single image source URL’s
  • Replaces all multiple image source set URL’s
  • Replaces all every other image src found inside the content
  • Serves Cloudflare Image Resizing the original image and lets Cloudflare crop it
  • Adds missing image default sizes (width/height for Google Page Insights scoring)

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 is inside a sub-folder, remember to tell the plugin this by setting the folder name.
  • You can configure quality settings (I do not recommend altering the default settings).
  • If you notice images not being re-written, try enabling more “hooks”. If it still does not work, open an issue.
  • You can configure whitelisting of images coming from Facebook, Twitter, Instagram, PayPal, etc.

Tips

  • Open the developer console in your browser after enabling this plugin to test functionality. Go to “Images” tab and see if the all the downloaded images have the Cloudflare Image Resizing format.
  • If you have filenames similar to image-100×200-100×300.jpg the plugin might not re-write it. Rename your file and re-upload it without any extra sizes in the filename.

Special Thanks

These are the people that spent time and effort to test and help improve the plugin, as well as sponsoring development.

설치

FROM YOUR WORDPRESS DASHBOARD

  1. Visit “Plugins” > Add New
  2. Search for CF Image Resizing
  3. Activate CF Image Resizing from your Plugins page.

FROM WORDPRESS.ORG

  1. Download CF Image Resizing
  2. Upload the “cf-image-resizing” directory to your “/wp-content/plugins/” directory, using ftp, sftp, scp etc.
  3. Activate CF Image Resizing from your Plugins page.

FAQ

Will this plugin slowdown my website?

Absolutely no. The plugin was written with speed in mind, that being said there are no database calls and every function used from PHP has been carefully selected to offer maximum performance.

후기

2022년 7월 23일
Hello, unfortunately, this plugin doesn't seem to work. I've followed the instructions, but it ended up breaking all the site's images. I've tried contacting the developer, but he hasn't answered. Be warned.
2022년 3월 8일
We've been looking implement Cloudflare Image Resizing feature came across this plugin and it's exactly what we were looking for. Huge shoutout to Mecanik for all of the hard work!
2022년 3월 8일
Its simple to set up and improves speed in combination with Cloudflare image resizing. Great developer support.
모든 3 평가 읽기

기여자 & 개발자

“CF Image Resizing”(은)는 오픈 소스 소프트웨어입니다. 다음의 사람들이 이 플러그인에 기여하였습니다.

기여자

자국어로 “CF Image Resizing”(을)를 번역하세요.

개발에 관심이 있으십니까?

코드 탐색하기는, SVN 저장소를 확인하시거나, 개발 기록RSS로 구독하세요.

변경이력

Version 1.3 (2022-03-04)

  • 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