Linux 软件免费装
Banner图

Edge Images

开发者 jonoaldersonwp
更新时间 2025年1月30日 22:19
PHP版本: 7.4 及以上
WordPress版本: 6.7
版权: GPLv2 or later
版权网址: 版权信息

标签

performance images cdn optimization cloudflare

下载

5.2.4 5.2.5 5.2.2 5.2.1 5.2.3 5.2.8 5.2.9 5.2.6 5.2.7

详情介绍:

Edge Images automatically uses your edge transformation service (e.g., Cloudflare, Accelerated Domains, Imgix, etc.) to apply performance optimizations to <img> markup. ⚠️ Important: This plugin requires a supported edge provider with image transformation features enabled (e.g., Cloudflare Pro, BunnyCDN, etc). See the Requirements section for details. 🚀 Why should I use Edge Images? 🎯 Perfect For 💡 How It Works WordPress typically creates multiple copies of each uploaded image in different sizes. This approach is inefficient and often results in: Edge Images solves these problems by:
  1. Intercepting image requests
  2. Determining the optimal size and format needed
  3. Using your CDN to transform the image on-demand
  4. Caching the result for future requests
⚡️ Features Core Features Advanced Features 🔌 Supported Providers 🛠️ Technical Example Your Code echo wp_get_attachment_image(1, [640,400], false, ['fit' => 'contain']); What WordPress Usually Outputs <img width="380" height="400" src="/uploads/2024/11/1.jpg" class="attachment-640x400 size-640x400 wp-image-123" srcset="/uploads/2024/11/1.jpg 400w, /uploads/2024/11/1-285x300.jpg 285w" sizes="(max-width: 640px) 100vw, 640px"> That's multiple different images files, none of which are the right size! What Edge Images Outputs <picture class="edge-images-container" style="--max-width: 640px;"> <img class="attachment-1140x600 size-640x400 wp-image-123 edge-images-processed" width="640" height="400" src="/cdn-cgi/image/f=auto,fit=contain,w=640,h=400/uploads/2024/11/1.jpg" srcset="/cdn-cgi/image/f=auto,w=320,h=188/uploads/2024/11/1.jpg 320w, /cdn-cgi/image/f=auto,w=640,h=400/uploads/2024/11/1.jpg 640w, /cdn-cgi/image/f=auto,w=1280,h=800/uploads/2024/11/1.jpg 1280w" sizes="(max-width: 640px) 100vw, 640px"> </picture> That's a range of perfectly sized options for different devices and viewports, automatically optimized images in modern formats, served from your CDN, futureproofed for supporting next-generation capabilities, and with no storage overheads. 🎨 Customization Transform Parameters Control every aspect of image transformation with attributes like: ` // Disable all transformations add_filter('edge_images_disable', '__return_true'); // Disable for specific images add_filter('edge_images_disable_transform', function($should_disable, $html) { if (strpos($html, 'example.jpg') !== false) { return true; } return $should_disable; }, 10, 2); // Override max width for constrained content add_filter('edge_images_max_width', function($max_width) { // Example: Use a different max width for single posts if (is_single()) { return 800; } return $max_width; }); // Customize srcset width multipliers add_filter('edge_images_width_multipliers', function($multipliers) { // Add more granular steps between sizes return [0.25, 0.5, 0.75, 1, 1.25, 1.5, 2]; }); ` 🔧 Requirements Essential Technical ✅ Getting Started
  1. Install and activate the plugin
  2. Go to Settings > Edge Images
  3. Select your CDN provider
  4. That's it! Your images will now be automatically optimized
🤝 Integrations Yoast SEO Automatically optimizes images in: 🔒 Privacy Edge Images processes images through third-party edge providers. Here's what you need to know about privacy: Data Processing Edge Provider Privacy Different providers have different privacy implications: Data Storage GDPR Compliance

安装:

  1. Upload the plugin files to /wp-content/plugins/edge-images/
  2. Activate the plugin through the 'Plugins' screen in WordPress
  3. Go to Settings > Edge Images to configure your provider

常见问题:

Which edge providers are supported?

Currently supported providers are:

  • Cloudflare (Pro plan or higher required)
  • Accelerated Domains
  • BunnyCDN
  • Imgix

Do I need to generate different image sizes?

No! The plugin handles image resizing on-the-fly through your edge provider.

Will this work with my existing images?

Yes, the plugin works with your existing media library images.

Does this work with Gutenberg?

Yes, the plugin fully supports the WordPress block editor.

How can I report security bugs?

You can report security bugs through the Patchstack Vulnerability Disclosure Program. The Patchstack team help validate, triage and handle any security vulnerabilities. Report a security vulnerability.

更新日志:

5.2.9 ( 30/01/2025 ) 5.2.7 ( 16/01/2025 ) 5.2.6 ( 10/01/2025 ) 5.2.5 ( 09/01/2025 ) 5.2.4 ( 09/01/2025 ) 5.2.3