- Sponsor
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
1 changed file
with
31 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# CloudFlare Image Resizing plugin for WordPress | ||
The current CloudFlare plugin for WordPress does not replace URL's automatically for you to use the Image Resizing feature. This plugin does. | ||
You will speed up your website drastically by offering to browsers AVIF/WEBP images. | ||
|
||
## Current features | ||
* Replaces all single image source URL's (src) | ||
* Replaces all multiple image source URL's (srcset) | ||
* Replaces all attachement image source URL's | ||
* Replaces all esc_attr source URL's (solves several problems with themes that use crappy methods to include images, for example Divi Theme uses "esc_attr($logo)") | ||
* Replaces all clean_url source URL's (solves aame problem as above with Divi and similar themes) | ||
* **BONUS**: Adds missing image default sizes (width/height for Google Page Insights scoring) | ||
|
||
## Usage | ||
* Upload the plugin manually via WordPress or FTP, and enable it. That simple. | ||
|
||
## Notes | ||
* Before using this plugin please ensure **you have turned ON** the CloudFlare Image Resizing feature for your domain. | ||
* At the moment there are no configurable options via WordPress, I did not have time for this. The default settings are: [quality=80,format=auto,onerror=redirect,metadata=none](https://developers.cloudflare.com/images/image-resizing/url-format#options) | ||
|
||
## 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. | ||
|
||
## Contribution | ||
Feel free to contribute with your own functions/methods. Just make sure you tested it properly. | ||
|
||
## Assistance | ||
In your are in immediate need of commercial help/advice/assistance, I can offer you my assistance for a small fee. | ||
Please do contact me via my email or if you cannot do so open an issue. | ||
|
||
## Support me | ||
Buy me a coffee to give me more energy and write more code :) |