{"id":194149,"date":"2020-12-08T23:53:39","date_gmt":"2020-12-08T23:53:39","guid":{"rendered":"https:\/\/premium.wpmudev.org\/blog\/?p=194149"},"modified":"2022-03-21T23:43:59","modified_gmt":"2022-03-21T23:43:59","slug":"local-webp-support-smush","status":"publish","type":"post","link":"https:\/\/wpmudev.com\/blog\/local-webp-support-smush\/","title":{"rendered":"Smush Pro Now Supports Local WebP Conversion (No CDN Required)"},"content":{"rendered":"<p>Until now, next-gen WebP images could only be served by activating Smush Pro&#8217;s CDN. But by popular demand, Smush Pro now also supports local WebP image conversion.<\/p>\n<p>Our CDN is awesome, it really is. However, we\u2019re all for giving people options.<\/p>\n<p>This is exactly why we\u2019ve now made it possible to convert your images to WebP format without needing to use our CDN.<\/p>\n<p>It was also one of Smush Pro&#8217;s (<em>and WPMU DEV in general!<\/em>) most anticipated and requested features of the year.<\/p>\n<p>You told us that&#8230;<\/p>\n<ul>\n<li>If you&#8217;re happy without a CDN, you don&#8217;t want to have to use one just for WebP support.<\/li>\n<li>You were also conscious that using Smush Pro&#8217;s CDN to serve images uses precious bandwidth &#8211; which might not be ideal for larger sites.<\/li>\n<\/ul>\n<p>So, like any good company who actually listens to their audience, we&#8217;ve obliged, and made our award-winning image optimization plugin &#8211; even better!<\/p>\n<p>Read on to find out the in&#8217;s and out&#8217;s of Smush Pro&#8217;s game-changing new feature.<\/p>\n<p>Here&#8217;s a quick overview if you want to skip to a particular section:<\/p>\n<ul>\n<li><a href=\"#wpmu\">Activating Local WebP on WPMU DEV Hosted Sites<\/a><\/li>\n<li><a href=\"#third\">Enabling Local WebP Conversion on Third-Party Sites<\/a>\n<ul>\n<li><a href=\"#apache\">Apache Server Configuration<\/a><\/li>\n<li><a href=\"#NGINX\">NGINX Server Configuration<\/a><\/li>\n<\/ul>\n<\/li>\n<li><a href=\"#check\">How to Check Your Image Format<\/a><\/li>\n<\/ul>\n<h2 id=\"wpmu\">Activating Local WebP on WPMU DEV Hosted Sites<\/h2>\n<p>First things first &#8211; the latest version of Smush Pro needs to be installed on your site.<\/p>\n<p>You can then head into the WebP settings.<\/p>\n<div class=\"image-grid cgrid-row\">\n<div class=\"cgrid-col cgrid-col-span-full\">\n<figure id=\"attachment_221275\" class=\"wp-caption aligncenter\" data-caption=\"true\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-221275 size-full\" src=\"https:\/\/wpmudev.com\/blog\/wp-content\/uploads\/2020\/12\/localwebp-notice.png\" alt=\"Smush Pro Local WebP activation notice.\" width=\"906\" height=\"302\" \/><figcaption class=\"wp-caption-text\">Non-CDN WebP support is just a few clicks away!<\/figcaption><\/figure>\n<\/div>\n<\/div>\n<p>If you host with us, you\u2019ll be lucky enough to be greeted by this message on the next page:<\/p>\n<div class=\"image-grid cgrid-row\">\n<div class=\"cgrid-col cgrid-col-span-full\">\n<figure id=\"attachment_221276\" class=\"wp-caption aligncenter\" data-caption=\"true\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-221276 size-ratio-full\" src=\"https:\/\/wpmudev.com\/blog\/wp-content\/uploads\/2020\/12\/localwebp-setup-1050x451.png\" alt=\"Screenshot of the message that lets you know everything is already set up if you host with WPMU DEV.\" width=\"1050\" height=\"451\" \/><figcaption class=\"wp-caption-text\">If this is the case &#8211; you\u2019re all set!<\/figcaption><\/figure>\n<\/div>\n<\/div>\n<p>Everything is automatically configured for you, and all that\u2019s left to do is <a href=\"https:\/\/wpmudev.com\/blog\/smush-bulk-optimize-images\/\" target=\"_blank\" rel=\"noopener\">run a Bulk Smush<\/a> so that your images are converted.<\/p>\n<p>From this page you can also see the supported media types, as well as delete all your WebP images.<\/p>\n<figure id=\"attachment_221277\" class=\"wp-caption aligncenter\" data-caption=\"true\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-221277 size-full\" src=\"https:\/\/wpmudev.com\/blog\/wp-content\/uploads\/2020\/12\/localwebp-settings.png\" alt=\"Screenshot of the supported media types - png and jpeg.\" width=\"959\" height=\"1025\" \/><figcaption class=\"wp-caption-text\">It\u2019s quick and easy to delete your WebP files if you change your mind.<\/figcaption><\/figure>\n<p>So let\u2019s get to the nitty gritty &#8211; what if your site is not hosted with WPMU DEV?<\/p>\n<p>You have two options.<\/p>\n<ol>\n<li>Switch to one of our <a href=\"https:\/\/wpmudev.com\/hosting\/\" target=\"_blank\">awesome (and affordable!) hosting plans<\/a>.<\/li>\n<li>Follow our step-by-step configuration guide below.<\/li>\n<\/ol>\n<h2 id=\"third\">How To Enable WebP Conversion On Non WPMU DEV Hosted Sites<\/h2>\n<p>Smush will try to automatically detect the type of server your site uses.<\/p>\n<figure id=\"attachment_194155\" class=\"wp-caption aligncenter\" data-caption=\"true\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-194155\" src=\"https:\/\/wpmudev.com\/blog\/wp-content\/uploads\/2020\/12\/server-type.png\" alt=\"Screenshot of the drop-down where you can choose your server type for configuration.\" width=\"600\" height=\"248\" \/><figcaption class=\"wp-caption-text\">Smush will try to detect whether your site is running on an Apache\/Litespeed or NGINX server.<\/figcaption><\/figure>\n<p>If the detected type is incorrect, you can change it manually using the dropdown box.<\/p>\n<h3 id=\"apache\">Apache Servers<\/h3>\n<p>If your server type is <strong>Apache<\/strong>, try the <strong>Automatic<\/strong> method first.<\/p>\n<figure id=\"attachment_194156\" class=\"wp-caption aligncenter\" data-caption=\"true\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-194156\" src=\"https:\/\/wpmudev.com\/blog\/wp-content\/uploads\/2020\/12\/apply-rules.png\" alt=\"Screenshot of the automatic method screen.\" width=\"600\" height=\"353\" \/><figcaption class=\"wp-caption-text\">Click the <strong>Apply Rules<\/strong> button.<\/figcaption><\/figure>\n<p>This will automatically add the needed server rules.<\/p>\n<p>If the Automatic method does not work, you can switch to the Manual option and add the displayed rules to your <em>.htaccess<\/em> file yourself.<\/p>\n<p>Smush talks you through what you need to do.<\/p>\n<figure id=\"attachment_196413\" class=\"wp-caption aligncenter\" data-caption=\"true\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-196413\" src=\"https:\/\/wpmudev.com\/blog\/wp-content\/uploads\/2020\/12\/local-webp-manual-rules.png\" alt=\"Screenshot of the configuration instructions within Smush.\" width=\"600\" height=\"535\" \/><figcaption class=\"wp-caption-text\">Follow these instructions within Smush to manually configure the settings.<\/figcaption><\/figure>\n<p>If neither of these methods are successful, you&#8217;ll be provided with a list of troubleshooting tips &#8211; and of course our 24\/7 superhero support team is always on hand if you need extra help.<\/p>\n<h3 id=\"&quot;NGINX\">NGINX Servers<\/h3>\n<p>If your server type is NGINX, the required rules must be added manually to your configuration file.<\/p>\n<p>Smush provides clear instructions on how to do this.<\/p>\n<figure id=\"attachment_194158\" class=\"wp-caption aligncenter\" data-caption=\"true\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-194158\" src=\"https:\/\/wpmudev.com\/blog\/wp-content\/uploads\/2020\/12\/emable-conversion-nginx.png\" alt=\"Screenshot of the configuration settings for NGINX servers.\" width=\"600\" height=\"516\" \/><figcaption class=\"wp-caption-text\">Follow the steps within Smush to configure your NGINX server manually.<\/figcaption><\/figure>\n<p>Just be aware that if your setup is running NGINX as a proxy for Apache, the Apache\/Litespeed rules may not work in<em> .htaccess<\/em>, and you\u2019ll want to add the NGINX rules manually using this method.<\/p>\n<h2 id=\"check\">How to Check Your Image Format<\/h2>\n<p>Unlike the WebP Conversion option in the Smush Pro CDN, you won\u2019t see the &#8220;.webp&#8221; format appear in source code.<\/p>\n<p>Instead, if you want to verify that images are indeed served as WebP, you\u2019ll want to pop open your browser\u2019s developer tools and, under the <strong>Network<\/strong> tab, check the <strong>Response Headers<\/strong> for any image.<\/p>\n<p>If you see \u201ccontent-type: image\/webp\u201d there, that tells you that the browser is indeed serving up the WebP version of the image.<\/p>\n<figure id=\"attachment_194159\" class=\"wp-caption aligncenter\" data-caption=\"true\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-194159\" src=\"https:\/\/wpmudev.com\/blog\/wp-content\/uploads\/2020\/12\/webp-proof.png\" alt=\"Screenshot of the developer tools tab showing proof of the images being webp.\" width=\"600\" height=\"243\" \/><figcaption class=\"wp-caption-text\">You will be able to see whether images are served as WebP.<\/figcaption><\/figure>\n<h2>Are You Converted?<\/h2>\n<p>Hopefully, after reading this article, you\u2019re confident that not only is WebP the right image format for your sites &#8211; but Smush Pro is the right plugin for the job.<\/p>\n<p>Just remember that if you want to <a href=\"https:\/\/wpmudev.com\/blog\/how-to-get-the-most-out-of-smush\/\" target=\"_blank\" rel=\"noopener\">take full advantage of the full power of Smush<\/a>, you can always use Smush Pro\u2019s CDN too!<\/p>\n<p>Not a member yet? Then <a href=\"https:\/\/wpmudev.com\/pricing\/\" target=\"_blank\" rel=\"noopener\">join WPMU DEV today<\/a> to experience all we have to offer including <a href=\"https:\/\/wpmudev.com\/project\/wp-smush-pro\/\" target=\"_blank\" rel=\"noopener\">Smush Pro<\/a> and take the new local WebP feature for a no-risk test drive.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Until now, next-gen WebP images could only be served by activating Smush Pro&#8217;s CDN. But by popular demand, Smush Pro now also supports local WebP image conversion. Our CDN is awesome, it really is. However, we\u2019re all for giving people options. This is exactly why we\u2019ve now made it possible to convert your images to [&hellip;]<\/p>\n","protected":false},"author":801248,"featured_media":194208,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"blog_reading_time":"","wds_primary_category":0,"wds_primary_tutorials_categories":0,"footnotes":""},"categories":[4,263,4161,11260],"tags":[],"tutorials_categories":[11228],"class_list":["post-194149","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-plugins","category-tutorials","category-wpmudev","category-wpmu-dev-products","tutorials_categories-smush-pro"],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/posts\/194149","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/users\/801248"}],"replies":[{"embeddable":true,"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/comments?post=194149"}],"version-history":[{"count":24,"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/posts\/194149\/revisions"}],"predecessor-version":[{"id":218394,"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/posts\/194149\/revisions\/218394"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/media\/194208"}],"wp:attachment":[{"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/media?parent=194149"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/categories?post=194149"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/tags?post=194149"},{"taxonomy":"tutorials_categories","embeddable":true,"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/tutorials_categories?post=194149"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}