Changeset 2904056
- Timestamp:
- 04/25/2023 06:12:23 PM (3 years ago)
- Location:
- fastware-webpavif
- Files:
-
- 14 added
- 1 edited
-
tags/2.0.0 (added)
-
tags/2.0.0/assets (added)
-
tags/2.0.0/assets/screenshot-1.png (added)
-
tags/2.0.0/assets/screenshot-2.png (added)
-
tags/2.0.0/assets/test.png (added)
-
tags/2.0.0/fastware-webpavif.php (added)
-
tags/2.0.0/includes (added)
-
tags/2.0.0/includes/AdminSettingsPage.php (added)
-
tags/2.0.0/includes/ImageConverter.php (added)
-
tags/2.0.0/includes/WebpAvifPlugin.php (added)
-
tags/2.0.0/readme.txt (added)
-
tags/2.0.0/templates (added)
-
tags/2.0.0/templates/.htaccess (added)
-
tags/2.0.0/uninstall.php (added)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
fastware-webpavif/trunk/readme.txt
r2895782 r2904056 2 2 Contributors: fastware,richarddegoffau 3 3 Tags: webp avif convert image google pagespeed 4 Stable tag: 1.1.44 Stable tag: 2.0.0 5 5 Requires at least: 5.9 6 6 Tested up to: 6.2 … … 67 67 ==Installation== 68 68 69 Install & activate the plugin and go!70 71 69 = Server requirements = 72 70 73 - Apache 2.x with mod_rewrite enabled71 - Apache 2.x with mod_rewrite or Nginx 74 72 - ImageMagick or GDlib with WebP support 75 - PHP max_execution_time of at least 15 seconds76 73 - ImageMagick with AVIF support (optional) 77 74 * You can use this plugin without AVIF support, in that case only WebP conversion is done 78 75 76 = Installation (Apache) = 77 78 The .htaccess rules are applied automatically when activating the plugin. Install the plugin and go! 79 80 81 = Installation (Nginx) = 82 83 You have to add the following lines to your nginx configuration: 84 In the **http** section (outside the **server** section): 85 86 map \$http_accept \$webp { 87 default ".nonexisting"; 88 "~*image/webp" ".webp"; 89 } 90 91 map \$http_accept \$png { 92 default ".png"; 93 "~*image/webp" ""; 94 } 95 96 map \$http_accept \$avif { 97 default ".nonexisting"; 98 "~*image/avif" ".avif"; 99 } 100 101 In the **server** section, above the "location /" rule: 102 *(Change the **wp-content** part if this folder is in a non-standard location.)* 103 104 location ~* wp\-content/(?!cache/fastware\-webpavif).+\.(jpe?g|png|gif|bmp|webp)\$ { 105 rewrite /wp\-content/(.+)\$ /wp-content/cache/fastware-webpavif/\$1; 106 } 107 108 location ~* cache/fastware\-webpavif.+\.(jpe?g|png|gif|bmp)\$ { 109 add_header Vary Accept; 110 try_files \$uri.pref\$webp \$uri.pref\$avif \$uri\$webp \$uri\$avif \$uri /?fw-webp-avif-ondemand=all; 111 } 112 113 location ~* cache/fastware\-webpavif.+\.webp\$ { 114 add_header Vary Accept; 115 try_files \$uri\$png /?fw-webp-avif-ondemand=png; 116 } 117 118 In the **mime.types** file, make sure the following lines are present: 119 120 image/webp webp; 121 image/avif avif; 122 123 79 124 == Changelog == 80 125 126 = Releases = 127 128 - 2.0.0 [25-04-2023] Added support for nginx 81 129 - 1.1.4 [07-04-2023] Fixed issue with rewriterules test 82 130 - 1.1.3 [07-04-2023] Show statistics of converted/queued/skipped images
Note: See TracChangeset
for help on using the changeset viewer.