Cloudflare Responsive Images
Uses Cloudflare Transform to generate responsive images on-demand.
by Pivotal Agency · github.com/pvtl/cloudflare-responsive-images · website
★ 0stars
197composer installs
0forks
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/pvtl/cloudflare-responsive-images/archive/refs/heads/main.zipAlso on Packagist as pvtl/cloudflare-responsive-images:
composer require pvtl/cloudflare-responsive-imagesFrom the readme
Cloudflare Responsive Images
By default, WordPress automatically creates several sizes of each image uploaded to the media library, and will save them to disk. This can use a lot of disk space on sites with many images (or image variants).
Cloudflare Images can solve this by transforming the original images into other sizes on the fly.
This plugin will re-write the URL's of all WP images to ensure they run through the Cloudflare Image transformation serivce.
What it does
- Disables WordPress image size generation - Saves storage space by preventing WordPress from creating multiple image variants
- Uses Cloudflare Transform - Generates responsive images on-demand using Cloudflare's image transformation service
- Automatic URL conversion - Converts image URLs to use Cloudflare Transform automatically
- Modern format support - Serves WebP and AVIF formats for better compression
- ACF integration - Works seamlessly with Advanced Custom Fields
Requirements
- Cloudflare
- Site with proxy ENABLED
- Account with Image Transformations ENABLED
- WordPress 5.0+
Installation
Composer / Wordpress Bedrock
Manual
1. Upload plugin to wp-content/plugins/cloudflare-responsive-image