定制 pvtl/cloudflare-responsive-images 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

pvtl/cloudflare-responsive-images

最新稳定版本:1.0.1

Composer 安装命令:

composer require pvtl/cloudflare-responsive-images

包简介

Disable WordPress responsive images and use Cloudflare Image Transformations instead.

README 文档

README

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

composer require pvtl/cloudflare-responsive-images

Manual

  1. Upload plugin to wp-content/plugins/cloudflare-responsive-images/
  2. Activate plugin in WordPress admin

Author

Pivotal Agency Pty Ltd

License

MIT

统计信息

  • 总下载量: 3
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-10-22