![]() I made a fix on my website but I think it could be an improvement for all user if you can make it your way ! // Original code line 215 I reach errors due to encoding errors while being in UTF-8. ![]() I'm reaching you about a little improvement in the cloudflare-image-resizing.php on lines 215/220 and subsequent calls : Warning: Undefined variable $safe_text in /var/www/html/wp-content/plugins/cloudflare-image-resizing/cloudflare-image-resizing.php on line 75 image-1024圆82.jpg) rather than using image.jpg (original) to perform the manipulation.ĭisclaimer: Cloudflare is not enabled on this site yet as I just wanted to see the URL structure for planning purposes. įor each line, the plugin is pulling the thumbnail size (e.g. Here is a sample excerpt from a vanilla installation with the Twenty twenty theme. I am not sure if this is the intended behaviour, but I assumed using CF Image Optimization would mean that all manipulations would be done on the source file rather than the thumbnail. Support meīuy me a coffee to give me more energy and write more code :) Please do contact me via my email or if you cannot do so open an issue. In your are in immediate need of commercial help/advice/assistance, I can offer you my assistance for a small fee. Go to "Images" tab and see if the all the downloaded images have the Cloudflare Image Resizing format.įeel free to contribute with your own functions/methods. Open the developer console in your browser after enabling this plugin to test functionality.The default settings are: quality=80,format=auto,onerror=redirect,metadata=none At the moment there are no configurable options via WordPress, I did not have time for this.Before using this plugin please ensure you have turned ON the Cloudflare Image Resizing feature for your domain.Upload the plugin manually via WordPress or FTP, and enable it.BONUS: Adds missing image default sizes (width/height for Google Page Insights scoring).Replaces all clean_url source URL's (solves aame problem as above with Divi and similar themes).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 attachement image source URL's.Replaces all multiple image source URL's (srcset).Replaces all single image source URL's (src).You will speed up your website drastically by offering to browsers AVIF/WEBP images. The current Cloudflare plugin for WordPress does not replace URL's automatically for you to use the Image Resizing feature. Cloudflare Image Resizing plugin for WordPress ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |