{"id":171012,"date":"2023-02-25T21:58:45","date_gmt":"2023-02-25T21:58:45","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/fastware-webpavif\/"},"modified":"2023-07-03T19:55:02","modified_gmt":"2023-07-03T19:55:02","slug":"fastware-webpavif","status":"closed","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/fastware-webpavif\/","author":20057074,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"2.0.7","stable_tag":"2.0.7","tested":"6.2.9","requires":"5.9","requires_php":"7.4","requires_plugins":null,"header_name":"WebP + AVIF converter","header_author":"Fastware","header_description":"Fast & simple plugin to automatically serve webp & avif images to browsers which support those formats (with fallback to original format).","assets_banners_color":"b452a8","last_updated":"2023-07-03 19:55:02","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"","header_author_uri":"https:\/\/www.fastware.nl\/","rating":3.5,"author_block_rating":0,"active_installs":80,"downloads":4592,"num_ratings":8,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":{"1.0.5":{"tag":"1.0.5","author":"fastware","date":"2023-03-06 21:02:06"},"1.0.6":{"tag":"1.0.6","author":"fastware","date":"2023-03-07 15:46:53"},"1.0.7":{"tag":"1.0.7","author":"richarddegoffau","date":"2023-03-15 20:07:40"},"1.0.8":{"tag":"1.0.8","author":"richarddegoffau","date":"2023-03-15 20:07:40"},"1.1.0":{"tag":"1.1.0","author":"richarddegoffau","date":"2023-03-25 09:38:05"},"1.1.1":{"tag":"1.1.1","author":"richarddegoffau","date":"2023-03-28 20:11:22"},"1.1.2":{"tag":"1.1.2","author":"richarddegoffau","date":"2023-04-01 09:03:49"},"1.1.3":{"tag":"1.1.3","author":"richarddegoffau","date":"2023-04-07 21:29:17"},"1.1.4":{"tag":"1.1.4","author":"richarddegoffau","date":"2023-04-07 22:18:30"},"2.0.0":{"tag":"2.0.0","author":"richarddegoffau","date":"2023-04-25 18:17:12"},"2.0.1":{"tag":"2.0.1","author":"richarddegoffau","date":"2023-04-25 19:10:27"},"2.0.2":{"tag":"2.0.2","author":"richarddegoffau","date":"2023-05-02 17:00:32"},"2.0.3":{"tag":"2.0.3","author":"richarddegoffau","date":"2023-05-06 07:39:54"},"2.0.4":{"tag":"2.0.4","author":"richarddegoffau","date":"2023-05-06 07:47:56"},"2.0.5":{"tag":"2.0.5","author":"richarddegoffau","date":"2023-05-06 17:56:05"},"2.0.6":{"tag":"2.0.6","author":"richarddegoffau","date":"2023-05-13 13:50:58"},"2.0.7":{"tag":"2.0.7","author":"richarddegoffau","date":"2023-07-03 19:55:02"}},"upgrade_notice":[],"ratings":{"1":3,"2":0,"3":0,"4":0,"5":5},"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":2877224,"resolution":"128x128","location":"assets","locale":""},"icon-256x256.png":{"filename":"icon-256x256.png","revision":2877224,"resolution":"256x256","location":"assets","locale":""},"icon.svg":{"filename":"icon.svg","revision":2877224,"resolution":false,"location":"assets","locale":false}},"assets_banners":{"banner-1544x500.png":{"filename":"banner-1544x500.png","revision":2877224,"resolution":"1544x500","location":"assets","locale":""},"banner-772x250.png":{"filename":"banner-772x250.png","revision":2877224,"resolution":"772x250","location":"assets","locale":""}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0.5","1.0.6","1.0.7","1.0.8","1.1.0","1.1.1","1.1.2","1.1.3","1.1.4","2.0.0","2.0.1","2.0.2","2.0.3","2.0.4","2.0.5","2.0.6","2.0.7"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":2907107,"resolution":"1","location":"assets","locale":""},"screenshot-2.png":{"filename":"screenshot-2.png","revision":2886773,"resolution":"2","location":"assets","locale":""}},"screenshots":{"1":"Settings page","2":"PageSpeed Insights"}},"plugin_section":[],"plugin_tags":[219442],"plugin_category":[],"plugin_contributors":[218464,219357],"plugin_business_model":[],"class_list":["post-171012","plugin","type-plugin","status-closed","hentry","plugin_tags-webp-avif-convert-image-google-pagespeed","plugin_contributors-fastware","plugin_contributors-richarddegoffau","plugin_committers-fastware","plugin_committers-richarddegoffau"],"banners":[],"icons":{"svg":"https:\/\/ps.w.org\/fastware-webpavif\/assets\/icon.svg?rev=2877224","icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/fastware-webpavif_b452a8.svg","icon_2x":false,"generated":true},"screenshots":[{"src":"https:\/\/ps.w.org\/fastware-webpavif\/assets\/screenshot-1.png?rev=2907107","caption":"Settings page"},{"src":"https:\/\/ps.w.org\/fastware-webpavif\/assets\/screenshot-2.png?rev=2886773","caption":"PageSpeed Insights"}],"raw_content":"<!--section=description-->\n<p>Fast, simple &amp; free plugin to automatically convert and serve WebP &amp; AVIF images.<\/p>\n\n<h4>Features<\/h4>\n\n<ul>\n<li>Automatically convert and serve WebP\/AVIF images.<\/li>\n<li>Increase your Google Pagespeed.<\/li>\n<li>Only images which are really used will be converted, does <strong>not<\/strong> convert the whole media library.<\/li>\n<li>WebP\/AVIF quality is adjustable (default 100% = no quality loss)<\/li>\n<li>No image URLs are changed, solution is purely based on .htaccess rewrite rules.<\/li>\n<li>Serve original format in case the browser does not support WebP\/AVIF (relying on the \"Accept\" header).<\/li>\n<li>The following source formats are supported: JP(E)G, PNG, GIF, BMP.<\/li>\n<li>Extra feature: WebP images are served as PNG when the browser\/client does not support WebP (e.g. Microsoft Outlook).<\/li>\n<\/ul>\n\n<h4>Browser support<\/h4>\n\n<ul>\n<li>WebP: all modern browsers<\/li>\n<li>AVIF: Chrome, Firefox, Safari (Edge doesn't support AVIF yet)<\/li>\n<\/ul>\n\n<h4>Good to know<\/h4>\n\n<ul>\n<li>It may take a few minutes before the WebP\/AVIF images are generated after activating the plugin.<\/li>\n<li>AVIF is a relatively new format, and not widely supported yet on servers. This depends on your server configuration (see Server requirements).<\/li>\n<li>Generating AVIF images is CPU-intensive, and may take a while.<\/li>\n<li>WebP\/AVIF format is only served when this format is smaller than the original file. Depending on the image, WebP\/AVIF is not always the most efficient format.<\/li>\n<li>Animated GIF-images are not supported yet as GDlib\/ImageMagick don't have support for it<\/li>\n<\/ul>\n\n<h4>How the plugin works<\/h4>\n\n<p>The plugin does <strong>nothing<\/strong> until the first image is requested. Here is the conversion flow.<\/p>\n\n<ol>\n<li>Original image is requested in browser<\/li>\n<li>Image is added to the conversion queue, original image is still served.<\/li>\n<li>Conversion queue is processed in background, queued images are converted to WebP\/AVIF format.<\/li>\n<li>When the image is requested now, and the browser supports WebP and\/or AVIF, the WebP\/AVIF image is served.<\/li>\n<\/ol>\n\n<!--section=installation-->\n<h4>Server requirements<\/h4>\n\n<ul>\n<li>Apache 2.x with mod_rewrite or Nginx<\/li>\n<li>ImageMagick or GDlib with WebP support<\/li>\n<li>ImageMagick or GDlib with AVIF support (optional)\n\n<ul>\n<li>You can use this plugin without AVIF support, in that case only WebP conversion is done<\/li>\n<\/ul><\/li>\n<\/ul>\n\n<h4>Installation (Apache)<\/h4>\n\n<p>The .htaccess rules are applied automatically when activating the plugin. Install the plugin and go!<\/p>\n\n<h4>Installation (Nginx)<\/h4>\n\n<p>You have to add the following lines to your nginx configuration:\nIn the <strong>http<\/strong> section (outside the <strong>server<\/strong> section):<\/p>\n\n<pre><code>map $http_accept $webp {\n    default \".nonexisting\";\n    \"~*image\/webp\" \".webp\";\n}\n\nmap $http_accept $png {\n    default \".png\";\n    \"~*image\/webp\" \"\";\n}\n\nmap $http_accept $avif {\n    default \".nonexisting\";\n    \"~*image\/avif\" \".avif\";\n}\n<\/code><\/pre>\n\n<p>In the <strong>server<\/strong> section, above the \"location \/\" rule:\n<em>(Change the <strong>wp-content<\/strong> part if this folder is in a non-standard location.)<\/em><\/p>\n\n<pre><code>location ~* wp\\-content\/(?!cache\/fastware\\-webpavif).+\\.(jpe?g|png|gif|bmp|webp)$ {\n    if (!-f $request_filename) {\n        break;\n    }\n    rewrite \/wp\\-content\/(.+)$ \/wp-content\/cache\/fastware-webpavif\/$1;\n}\n\nlocation ~* cache\/fastware\\-webpavif.+\\.(jpe?g|png|gif|bmp)$ {\n    add_header Vary Accept;\n    expires 30d;\n    try_files $uri.pref$webp $uri.pref$avif $uri$webp $uri$avif $uri \/?fw-webp-avif-ondemand=all;\n}\n\nlocation ~* cache\/fastware\\-webpavif.+\\.webp$ {\n    add_header Vary Accept;\n    expires 30d;\n    try_files $uri$png \/?fw-webp-avif-ondemand=png;\n}\n<\/code><\/pre>\n\n<p>If there exist a rule for images like <strong>location ~&#042; ^.+&#046;(ogg|...|jpg|jpeg|gif|png|webp|ico|bmp|...)$<\/strong>:<\/p>\n\n<pre><code>Please remove the following matching extensions: jpg|jpeg|gif|bmp|webp|avif.\n<\/code><\/pre>\n\n<p>In the <strong>mime.types<\/strong> file, make sure the following lines are present:<\/p>\n\n<pre><code>image\/webp                                       webp;\nimage\/avif                                       avif;\n<\/code><\/pre>\n\n<!--section=faq-->\n<dl>\n<dt id='how%20can%20i%20verify%20the%20plugin%20is%20working%3F'><h3>How can I verify the plugin is working?<\/h3><\/dt>\n<dd><p>Please check the settings page to verify your server meets the installation requirements.<\/p><\/dd>\n<dt id='how%20can%20i%20serve%20my%20images%20even%20smaller%3F'><h3>How can I serve my images even smaller?<\/h3><\/dt>\n<dd><p>You can lower the quality settings on the settings page to serve smaller images. A value of 85% might be a good balance between quality and image size.<\/p><\/dd>\n<dt id='why%20is%20the%20original%20image%20served%20sometimes%3F'><h3>Why is the original image served sometimes?<\/h3><\/dt>\n<dd><p>It could happen that your original image is smaller than the converted WebP\/AVIF image - in that case, the original image is served.<\/p><\/dd>\n<dt id='how%20long%20would%20it%20take%20to%20convert%20all%20images%20on%20my%20site%3F'><h3>How long would it take to convert all images on my site?<\/h3><\/dt>\n<dd><p>That depends. Each image is queued upon the <strong>first<\/strong> request. After the first request the image should be converted within a few minutes (depending on when the cron runs).\nWhen your site contains a lot (thousands) of images, it can take a few hours before all images are converted.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>Releases<\/h4>\n\n<ul>\n<li>2.0.7 [03-07-2023] Fixed redirect loop<\/li>\n<li>2.0.6 [13-05-2023] Fixed issue with background converts<\/li>\n<li>2.0.5 [06-05-2023] Added support for GDlib AVIF conversion (PHP &gt;= 8.1)<\/li>\n<li>2.0.4 [06-05-2023] Fixed error in loopback test on plugin configuration page<\/li>\n<li>2.0.3 [06-05-2023] Fixed error in loopback test on plugin configuration page<\/li>\n<li>2.0.2 [02-05-2023] More detailed checks\/errors on plugin configuration page<\/li>\n<li>2.0.1 [25-04-2023] Fix in wrong .htaccess rule<\/li>\n<li>2.0.0 [25-04-2023] Added support for nginx<\/li>\n<li>1.1.4 [07-04-2023] Fixed issue with rewriterules test<\/li>\n<li>1.1.3 [07-04-2023] Show statistics of converted\/queued\/skipped images<\/li>\n<li>1.1.2 [29-03-2023] Added support for converting GIF images<\/li>\n<li>1.1.1 [28-03-2023] Added support for converting BMP images<\/li>\n<li>1.1.0 [20-03-2023] Added WebP\/AVIF quality settings<\/li>\n<li>1.0.8 [15-03-2023] .htaccess fix + minor change in plugin name<\/li>\n<li>1.0.7 [13-03-2023] Added admin dashboard to check plugin\/server configuration<\/li>\n<li>1.0.6 [07-03-2023] Fixed redirect bug on servers without avif support<\/li>\n<li>1.0.5 [04-03-2023] Moved working directory, to improve cleanup after uninstall<\/li>\n<li>1.0.4 [27-02-2023] Added support for PHP 7.4, fixed issue with scheduled converts<\/li>\n<li>1.0.3 [22-02-2023] Adjust code to improve quality<\/li>\n<li>1.0.2 [21-02-2023] Bugfix in GD convert<\/li>\n<li>1.0.1 [18-02-2023] Stricter typing &amp; ImageMagick as primary converter with GD as fallback<\/li>\n<li>1.0.0 [17-02-2023] Initial version<\/li>\n<\/ul>","raw_excerpt":"Fast, simple &amp; free plugin to automatically convert and serve WebP &amp; AVIF images.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/171012","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=171012"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/fastware"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=171012"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=171012"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=171012"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=171012"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=171012"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=171012"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}