{"id":44514,"date":"2021-11-02T10:31:54","date_gmt":"2021-11-02T14:31:54","guid":{"rendered":"https:\/\/www.boldgrid.com\/support\/?p=44514"},"modified":"2024-12-20T10:14:02","modified_gmt":"2024-12-20T15:14:02","slug":"image-service","status":"publish","type":"post","link":"https:\/\/www.boldgrid.com\/support\/w3-total-cache\/image-service\/","title":{"rendered":"How to serve images in next-gen formats in WordPress?"},"content":{"rendered":"<!DOCTYPE html PUBLIC \"-\/\/W3C\/\/DTD HTML 4.0 Transitional\/\/EN\" \"http:\/\/www.w3.org\/TR\/REC-html40\/loose.dtd\">\n<?xml encoding=\"utf-8\" ?><html><body><div class=\"boldgrid-section\">\n<div class=\"container\">\n<div class=\"row\">\n<div class=\"col-lg-12 col-md-12 col-xs-12 col-sm-12\">\n<p>While performing a Google PageSpeed test, you might get the following notice:<\/p>\n<p class=\"\"><strong>Serve images in next-gen formats &ndash; Potential savings of 269 Kib<\/strong><br>\n<em>Image formats like WebP and AVIF often provide better compression than PNG or JPEG, which means faster downloads and less data consumption.<\/em><\/p>\n<p class=\"\"><img loading=\"lazy\" decoding=\"async\" class=\"bg-border alignnone wp-image-125222 size-full\" src=\"https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2021\/11\/serve-images-in-next-gen-formats.png\" alt=\"Google PageSpeed results showing the need to serve images in next-gen formats\" width=\"972\" height=\"142\" srcset=\"https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2021\/11\/serve-images-in-next-gen-formats.png 972w, https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2021\/11\/serve-images-in-next-gen-formats-300x44.png 300w, https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2021\/11\/serve-images-in-next-gen-formats-768x112.png 768w\" sizes=\"auto, (max-width: 972px) 100vw, 972px\" \/><\/p>\n<p class=\"\">Images are a vital part of any website, enhancing both its visual appeal and user engagement. However, images will slow down your site if they aren&rsquo;t optimized properly. That&rsquo;s why it&rsquo;s important to learn how to serve images in next-gen formats. In this post, we&rsquo;ll explain what next-gen image formats are, why they&rsquo;re better, and how you can use them in WordPress with tools like <strong>W3 Total Cache<\/strong>.<\/p>\n<p class=\"h3\"><strong>Table of Contents<\/strong><\/p>\n<ul class=\"\">\n<li><a href=\"#what-are\">What are Next-Gen Image Formats?<\/a><\/li>\n<li><a href=\"#why-use\">Why use Next-Gen Image Formats?<\/a><\/li>\n<li><a href=\"#how-to\">How to Serve Images in Next-Gen Formats<\/a><\/li>\n<li><a href=\"#browser\">WebP Browser Compatibility<\/a><\/li>\n<li><a href=\"#faq\">Frequently Asked Questions<\/a><\/li>\n<li><a href=\"#trouble\">Troubleshooting<\/a><\/li>\n<\/ul>\n<p class=\"\">\t  \n\t<div class=\"bg-proof bg-shadow\">\n\t\t<div>\n\t\t\t<span class=\"bg-green-circle\">+9<\/span>\n\t\t\t<span class=\"bg-green-description\">Points<\/span>\n\t\t<\/div>\n\t\t<div>\n\t\t\t<p>In a recent test, we converted all of our images to WebP and added 9 points to the <strong>Google PageSpeed score<\/strong>! Review the <a href=\"https:\/\/www.boldgrid.com\/support\/w3-total-cache\/pagespeed-tests\/webp\/\">test results<\/a> to see how we did it!<\/p>\n\t\t\t<p>\n\t\t\t\t<a class=\"button-primary\" href=\"https:\/\/www.w3-edge.com\/checkout-standalone-1\/?utm_source=boldgrid&amp;utm_medium=support-on-page&amp;utm_campaign=BoldGrid\" style=\"background: #21759b;padding: 6px 10px;\">Upgrade to W3 Total Cache Pro<\/a> and improve your PageSpeed Scores today!\n\t\t  \t<\/p>\n\t\t\t<div class=\"bg-proof-meta\">\n\t\t\t\t<div><strong>Audit:<\/strong> Google PageSpeed Score<\/div>\n\t\t\t\t<div><strong>Before:<\/strong> 84.67<\/div>\n\t\t\t\t<div><strong>After:<\/strong> 93.83<\/div>\n\t\t\t<\/div>\n\t  \t<\/div>\n\t<\/div>\n\t  \n    <\/p>\n<h2 id=\"what-are\" class=\"\" style=\"padding-top: 4em; margin-top: -3em;\">What are next-gen image formats?<\/h2>\n<p class=\"\">Next-gen image formats are advanced image file types designed to offer better compression and quality compared to older formats like JPEG and PNG. The most popular next-gen formats include:<\/p>\n<ul class=\"\">\n<li><strong>WebP<\/strong>: Developed by Google, WebP supports both lossy and lossless compression and provides smaller file sizes without sacrificing quality.<\/li>\n<li><strong>AVIF<\/strong>: Based on the AV1 video codec, AVIF offers even better compression than WebP and supports HDR (High Dynamic Range).<\/li>\n<\/ul>\n<p class=\"\">These formats offer improved compression and quality compared to traditional formats like JPEG and PNG. They are designed to reduce file sizes and improve web performance without sacrificing image quality. They often support features like transparency, animation, and high dynamic range (HDR), making them suitable for modern web applications and multimedia content.<\/p>\n<p class=\"\">The image below demonstrates the difference in image size and download time for a JPEG image compared to a WebP image.<\/p>\n<p class=\"\"><a href=\"https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2024\/04\/Pasted-image-20240417105313.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-129960\" src=\"https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2024\/04\/Pasted-image-20240417105313-1024x578.png\" alt=\"webp image comparison\" width=\"1024\" height=\"578\" srcset=\"https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2024\/04\/Pasted-image-20240417105313-1024x578.png 1024w, https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2024\/04\/Pasted-image-20240417105313-300x169.png 300w, https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2024\/04\/Pasted-image-20240417105313-768x434.png 768w, https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2024\/04\/Pasted-image-20240417105313-1536x867.png 1536w, https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2024\/04\/Pasted-image-20240417105313.png 1658w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/p>\n<\/div>\n<\/div>\n<div class=\"row\">\n<div class=\"col-lg-12 col-md-12 col-xs-12 col-sm-12\">\n<h2 id=\"why-use\" class=\"\" style=\"padding-top: 4em; margin-top: -3em;\">Why Use Next-Gen Image Formats?<\/h2>\n<p class=\"\">Learning how to serve images in next-gen formats benefits your website in several ways:<\/p>\n<ul class=\"fa-ul\" style=\"padding-left: 0; list-style: none;\">\n<li style=\"margin-bottom: 10px;\"><i class=\"fa fa-check\"><\/i> &nbsp;<strong><span class=\"bg-span\" style=\"font-size: 18px;\">Faster Loading Speeds<\/span><\/strong><br>\nWhen you serve images in next-gen formats, you significantly reduce image file sizes. This means your pages load faster, improving the user experience and reducing bounce rates.<\/li>\n<li style=\"margin-bottom: 10px;\"><i class=\"fa fa-check\"><\/i> &nbsp;<strong><span class=\"bg-span\" style=\"font-size: 18px;\">Better Core Web Vitals<\/span><\/strong><br>\nServing optimized images helps <a href=\"https:\/\/www.boldgrid.com\/how-to-improve-core-web-vitals\/\">improve Core Web Vitals<\/a> metrics like Largest Contentful Paint (LCP) This is crucial for search engine optimization (SEO).<\/li>\n<li style=\"margin-bottom: 10px;\"><i class=\"fa fa-check\"><\/i> &nbsp;<span class=\"bg-span\" style=\"font-size: 18px;\"><strong>Reduced Bandwidth Usage<\/strong><\/span><br>\nSmaller images mean less data for users to download, saving bandwidth for both you and your visitors.<\/li>\n<li style=\"margin-bottom: 10px;\"><i class=\"fa fa-check\"><\/i> &nbsp;<span class=\"bg-span\" style=\"font-size: 18px;\"><strong>Enhanced Mobile Performance<\/strong><\/span><br>\nSince many visitors access websites on mobile devices with limited network speeds, optimized images ensure a smoother browsing experience.<\/li>\n<\/ul>\n<h2 id=\"how-to\" class=\"\" style=\"padding-top: 4em; margin-top: -3em;\">How to Serve Images in Next-Gen Formats in WordPress<\/h2>\n<p class=\"\">WordPress doesn&rsquo;t natively support next-gen image conversion, but a <a href=\"https:\/\/www.boldgrid.com\/w3-total-cache\/\">WordPress caching plugin<\/a> like <strong>W3 Total Cache<\/strong> makes it easy to integrate these modern formats into your site. Here&rsquo;s how you can use the W3 Total Cache plugin to serve images in next-gen formats &ndash; WebP:<\/p>\n<\/div>\n<\/div>\n<div class=\"row\" style=\"padding-bottom: 30px;\">\n<div class=\"col-lg-12 col-md-12 col-xs-12 col-sm-12\">\n<h3 class=\"\" id=\"step-1-install-and-activate-w3-total-cache\">Step 1: Install and Activate W3 Total Cache<\/h3>\n<p class=\"\">Download and activate the W3 Total Cache plugin from the WordPress plugin repository.<\/p>\n<h3 class=\"\" id=\"step-2-enabling-w3-total-cache-image-service\">Step 2: Enabling W3 Total Cache Image Service<\/h3>\n<p class=\"\">The first step to using the WebP conversion Image Service is to enable the feature in the <b>Extensions<\/b> list for W3 Total Cache. New W3 Total Cache installations will have the extension enabled by default, but existing installs will need to activate it manually.<\/p>\n<ol class=\"\">\n<li><span style=\"font-weight: 400;\">Go to <\/span><b>Performance<\/b><span style=\"font-weight: 400;\"> &gt; <\/span><b>Extensions<\/b><\/li>\n<li>Locate the <b>Image Service<\/b> item in the list of <b>Extensions<\/b> and enable it.<\/li>\n<\/ol>\n<p class=\"\"><a href=\"https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2021\/11\/44514-image-service-extension-activated.png\" rel=\"lightbox\"><img loading=\"lazy\" decoding=\"async\" class=\"bg-border wp-image-44519 size-full alignnone\" src=\"https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2021\/11\/44514-image-service-extension-activated.png\" alt=\"activated image service in w3 total cache extensions list\" width=\"910\" height=\"83\" srcset=\"https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2021\/11\/44514-image-service-extension-activated.png 910w, https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2021\/11\/44514-image-service-extension-activated-300x27.png 300w, https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2021\/11\/44514-image-service-extension-activated-768x70.png 768w\" sizes=\"auto, (max-width: 910px) 100vw, 910px\" \/><\/a><\/p>\n<h3 class=\"\" id=\"step-3-option-1-convert-images-1-by-1\">Step 3 (Option 1): Convert images 1 by 1<\/h3>\n<p class=\"\"><span style=\"font-weight: 400;\">Once the Image Service extension is enabled open up your Media Library to begin converting images to the WebP format. The Image Service tool is only available while the Media Library is in List view and you can use the controls in the Media Library to switch to List mode if it is in the default Grid display.<\/span><\/p>\n<p class=\"\"><a href=\"https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2021\/11\/44514-media-library-list-view.png\" rel=\"lightbox\"><img loading=\"lazy\" decoding=\"async\" class=\"bg-border alignnone wp-image-44520 size-full\" src=\"https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2021\/11\/44514-media-library-list-view.png\" alt=\"list view option in media library\" width=\"475\" height=\"275\" srcset=\"https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2021\/11\/44514-media-library-list-view.png 475w, https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2021\/11\/44514-media-library-list-view-300x174.png 300w\" sizes=\"auto, (max-width: 475px) 100vw, 475px\" \/><\/a><\/p>\n<p><span style=\"font-weight: 400;\">Images can be converted selecting the Convert link for each image individually or using the Bulk Actions tool and choosing W3 Total Optimize from the list.<\/span><\/p>\n<p class=\"\"><a href=\"https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2021\/11\/44514-media-library-single-image-convert.png\" rel=\"lightbox\"><img loading=\"lazy\" decoding=\"async\" class=\"bg-border wp-image-44521 size-large alignnone\" src=\"https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2021\/11\/44514-media-library-single-image-convert-1024x54.png\" alt=\"single image conversion option in media library\" width=\"1024\" height=\"54\" srcset=\"https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2021\/11\/44514-media-library-single-image-convert-1024x54.png 1024w, https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2021\/11\/44514-media-library-single-image-convert-300x16.png 300w, https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2021\/11\/44514-media-library-single-image-convert-768x40.png 768w, https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2021\/11\/44514-media-library-single-image-convert.png 1315w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/p>\n<p class=\"\"><a href=\"https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2021\/11\/44514-bulk-actions-w3tc-convert.png\" rel=\"lightbox\"><img loading=\"lazy\" decoding=\"async\" class=\"bg-border alignnone wp-image-44516 size-full\" src=\"https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2021\/11\/44514-bulk-actions-w3tc-convert.png\" alt=\"bulk conversion option in media library\" width=\"434\" height=\"282\" srcset=\"https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2021\/11\/44514-bulk-actions-w3tc-convert.png 434w, https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2021\/11\/44514-bulk-actions-w3tc-convert-300x195.png 300w\" sizes=\"auto, (max-width: 434px) 100vw, 434px\" \/><\/a><\/p>\n<p class=\"\">&nbsp;<\/p>\n<h3 class=\"\" id=\"step-3-option-2-bulk-convert-images\">Step 3 (Option 2): Bulk convert images<\/h3>\n<p class=\"\"><span style=\"font-weight: 400;\">Enabling the Image Service Extension also adds the <\/span><b>Total Cache Image Service<\/b><span style=\"font-weight: 400;\"> under <\/span><b>Media<\/b><span style=\"font-weight: 400;\"> in the WordPress admin menu, which allows for bulk conversions or reversions of the entire Media Library at once. Use the <\/span><b>Convert All<\/b><span style=\"font-weight: 400;\"> or <\/span><b>Revert All<\/b><span style=\"font-weight: 400;\"> buttons in the <\/span><b>Tools<\/b><span style=\"font-weight: 400;\"> section to manage your WebP image conversions for the entire Media Library at once.<\/span><\/p>\n<p class=\"\"><a href=\"https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2021\/11\/44514-image-service-convert-revert-all.png\" rel=\"lightbox\"><img loading=\"lazy\" decoding=\"async\" class=\"bg-border alignnone wp-image-44518 size-full\" src=\"https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2021\/11\/44514-image-service-convert-revert-all.png\" alt=\"convert all and revert all buttons in image service tools section\" width=\"541\" height=\"234\" srcset=\"https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2021\/11\/44514-image-service-convert-revert-all.png 541w, https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2021\/11\/44514-image-service-convert-revert-all-300x130.png 300w\" sizes=\"auto, (max-width: 541px) 100vw, 541px\" \/><\/a><\/p>\n<h3 class=\"\" id=\"settings\">Settings<\/h3>\n<p class=\"\">The settings page for the Image Service extension allows you to toggle the conversion type between Lossy (default) or Lossless and configure automatic conversions for new image uploads to your website. Lossless conversions can sometimes result in larger file sizes for JPEG and some other formats but will usually decrease the size when converting PNGs.<\/p>\n<p class=\"\"><a href=\"https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2021\/11\/44514-w3tc-image-service-configurations.png\" rel=\"lightbox\"><img loading=\"lazy\" decoding=\"async\" class=\"bg-border alignnone wp-image-44524 size-full\" src=\"https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2021\/11\/44514-w3tc-image-service-configurations.png\" alt=\"w3 total cache image service conversion settings\" width=\"455\" height=\"291\" srcset=\"https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2021\/11\/44514-w3tc-image-service-configurations.png 455w, https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2021\/11\/44514-w3tc-image-service-configurations-300x192.png 300w\" sizes=\"auto, (max-width: 455px) 100vw, 455px\" \/><\/a><\/p>\n<p class=\"\">\t  \n\t<div class=\"bg-proof bg-shadow\">\n\t\t<div>\n\t\t\t<span class=\"bg-green-circle\">+9<\/span>\n\t\t\t<span class=\"bg-green-description\">Points<\/span>\n\t\t<\/div>\n\t\t<div>\n\t\t\t<p>In a recent test, we converted all of our images to WebP and added 9 points to the <strong>Google PageSpeed score<\/strong>! Review the <a href=\"https:\/\/www.boldgrid.com\/support\/w3-total-cache\/pagespeed-tests\/webp\/\">test results<\/a> to see how we did it!<\/p>\n\t\t\t<p>\n\t\t\t\t<a class=\"button-primary\" href=\"https:\/\/www.w3-edge.com\/checkout-standalone-1\/?utm_source=boldgrid&amp;utm_medium=support-on-page&amp;utm_campaign=BoldGrid\" style=\"background: #21759b;padding: 6px 10px;\">Upgrade to W3 Total Cache Pro<\/a> and improve your PageSpeed Scores today!\n\t\t  \t<\/p>\n\t\t\t<div class=\"bg-proof-meta\">\n\t\t\t\t<div><strong>Audit:<\/strong> Google PageSpeed Score<\/div>\n\t\t\t\t<div><strong>Before:<\/strong> 84.67<\/div>\n\t\t\t\t<div><strong>After:<\/strong> 93.83<\/div>\n\t\t\t<\/div>\n\t  \t<\/div>\n\t<\/div>\n\t  \n    <\/p>\n<h2 id=\"browser\" class=\"\" style=\"padding-top: 4em; margin-top: -3em;\">WebP Browser Compatibility<\/h2>\n<p class=\"\">Most modern browsers support WebP, including Google Chrome, Mozilla Firefox, Microsoft Edge, and Safari. However, older versions of some browsers may not support WebP, so it&rsquo;s important to <a href=\"https:\/\/caniuse.com\/webp\">check compatibility<\/a> when deciding when and how to serve images in next-gen formats.<\/p>\n<p class=\"\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2024\/09\/webp-browser-usage.png\" alt=\"WebP Browser integration\" width=\"1362\" height=\"524\"><\/p>\n<h2 id=\"faq\" class=\"\" style=\"padding-top: 4em; margin-top: -3em;\">FAQ<\/h2>\n<h3 class=\"\" id=\"what-is-webp\">What is WebP?<\/h3>\n<p class=\"\">WebP is an image format developed by Google that provides superior lossless and lossy compression for images on the web. Using WebP, webmasters and web developers can create smaller, richer images that make the web faster. It supports transparency (alpha channel) and animation, making it a versatile choice for various web applications. <a href=\"https:\/\/developers.google.com\/speed\/webp#:~:text=WebP%20lossy%20images%20are%2025,of%20just%2022%25%20additional%20bytes.\">WebP images are typically 25-34% smaller in file size<\/a> compared to JPEG and PNG images, resulting in faster page load times and improved website performance.<\/p>\n<h3 class=\"\" id=\"what-does-webp-stand-for\">What does WebP stand for?<\/h3>\n<p class=\"\">The name &ldquo;WebP&rdquo; is derived from the words &ldquo;Web&rdquo; and &ldquo;Picture,&rdquo; indicating its primary purpose as an image format optimized for web usage.<\/p>\n<h3 class=\"\" id=\"are-there-any-limitations\">Are there any limitations?<\/h3>\n<p class=\"\">Free W3 Total Cache users have a limited number of conversions that they can run in a monthly period. W3TC Pro users however do not have this limitation and upgrading to a Pro license will be helpful if you have a large number of images that you wish to convert immediately. Upgrading to a Pro plan will allow you to finish all of your conversions in addition to providing access to all of the other Pro features like Fragment Caching, Delay Scripts and Eliminate Render Blocking CSS.<\/p>\n<h3 id=\"how-exactly-are-the-images-converted\">How exactly are the images converted?<\/h3>\n<p class=\"\"><span style=\"font-weight: 400;\">All images converted with the Image Service tool are sent to a third party server maintained by the W3 Total Cache team which reduces resource consumption and allows for a large number of conversions in environments where resources can be limited such as shared hosting. Images sent to the W3TC server for conversion are only held temporarily and no permanent information is kept on the server regarding the images.<\/span><\/p>\n<p class=\"\"><span style=\"font-weight: 400;\">WebP optimizations with the Image Service tool do not replace the original image file and all conversions can be reverted without any loss of data.<\/span><\/p>\n<h3 class=\"\" id=\"can-i-revert-images-to-their-previous-format\">Can I revert images to their previous format?<\/h3>\n<p class=\"\"><span style=\"font-weight: 400;\">Images can also be reverted through the Media Library either individually or with the W3 Total Optimize Revert option in the Bulk Actions list.<\/span><\/p>\n<p class=\"\"><a href=\"https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2021\/11\/44514-media-library-single-image-revert.png\" rel=\"lightbox\"><img loading=\"lazy\" decoding=\"async\" class=\"bg-border aligncenter wp-image-44522 size-large\" src=\"https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2021\/11\/44514-media-library-single-image-revert-1024x55.png\" alt=\"single image revert control in media library\" width=\"1024\" height=\"55\" srcset=\"https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2021\/11\/44514-media-library-single-image-revert-1024x55.png 1024w, https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2021\/11\/44514-media-library-single-image-revert-300x16.png 300w, https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2021\/11\/44514-media-library-single-image-revert-768x41.png 768w, https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2021\/11\/44514-media-library-single-image-revert.png 1407w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/p>\n<h3 class=\"\" id=\"\"><a href=\"https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2021\/11\/44514-bulk-actions-w3tc-convert-revert.png\" rel=\"lightbox\"><img loading=\"lazy\" decoding=\"async\" class=\"bg-border alignnone wp-image-44517 size-full\" src=\"https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2021\/11\/44514-bulk-actions-w3tc-convert-revert.png\" alt=\"bulk revert option in media library\" width=\"420\" height=\"299\" srcset=\"https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2021\/11\/44514-bulk-actions-w3tc-convert-revert.png 420w, https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2021\/11\/44514-bulk-actions-w3tc-convert-revert-300x214.png 300w\" sizes=\"auto, (max-width: 420px) 100vw, 420px\" \/><\/a><\/h3>\n<h3 id=\"what-is-lossless-and-lossy-compression\">What is lossless and lossy compression?<\/h3>\n<p class=\"\">Lossless and lossy compression are two methods used to reduce the size of digital files:<\/p>\n<ol class=\"\">\n<li><strong>Lossless Compression<\/strong>: This method reduces file size without losing any data. When the file is decompressed, it returns to its original state without any loss of quality. This is important for applications where preserving the original data is critical, such as text documents or certain image formats like PNG.<\/li>\n<li><strong>Lossy Compression<\/strong>: This method achieves greater compression by removing some data deemed less important. This results in some loss of quality when the file is decompressed, but the reduced file size can be significant. JPEG images and MP3 audio files are common examples of lossy compression.<\/li>\n<\/ol>\n<p class=\"\">WebP supports both lossless and lossy compression, allowing for efficient image storage while maintaining quality.<\/p>\n<h3 id=\"has-google-developed-any-other-types-of-image-formats\">Has Google developed any other types of image formats?<\/h3>\n<p class=\"\">Yes, Google has developed other image formats, including AVIF (AV1 Image File Format). AVIF is a newer image format that offers improved compression efficiency compared to WebP, making it a promising alternative for web images. It is based on the AV1 video codec and supports a wide range of features, including high dynamic range (HDR) and 10-bit color depth.<\/p>\n<h3 class=\"\" id=\"do-all-browsers-support-the-avif-image-format\">Do all browsers support the avif image format?<\/h3>\n<p class=\"\">Not all browsers support the AVIF image format yet. As of now, Google Chrome, Mozilla Firefox, and Microsoft Edge have added support for AVIF, while Safari and some other browsers do not support it. The adoption of AVIF is increasing, but it&rsquo;s important to check browser compatibility when using this format for web content.<\/p>\n<p class=\"\"><a href=\"https:\/\/caniuse.com\/avif\" target=\"_blank\" rel=\"noopener\">AVIF Browser Compatibility<\/a><\/p>\n<h2 id=\"trouble\" class=\"\" style=\"padding-top: 4em; margin-top: -3em;\">Troubleshooting<\/h2>\n<h3 class=\"\" id=\"i-still-see-the-message-in-google-pagespeed-why\">I still see the message in Google PageSpeed, why?<\/h3>\n<p class=\"\">There might be instances where you&rsquo;ve converted all of your images to WebP and still receive the <strong>serve images in next-gen formats<\/strong> message from PageSpeed Insights in the performance report.<\/p>\n<p class=\"\">The important note here is that the smallest image will always be served to visitors, regardless of the image format. Lossless conversion sometimes creates an image that is larger than the original, which would then cause the original image to be served instead of the WebP one.<\/p>\n<p class=\"\">Try switching to Lossy conversion if you still see the message, but if that doesn&rsquo;t work then you can likely ignore the message since the most optimized image is already being used.<\/p>\n<h3 class=\"\" id=\"using-plesk-and-nginx-caching-with-proxy-mode\"><span style=\"font-weight: 400;\">Using Plesk and NGINX caching with proxy mode<\/span><\/h3>\n<p class=\"\">First, remove image extensions (jpg, jpeg, webp, png) from &ldquo;<a href=\"https:\/\/docs.plesk.com\/en-US\/obsidian\/customer-guide\/websites-and-domains\/hosting-settings\/web-server-settings\/apache-and-nginx-settings.72320\/#serve-only-files-with-specific-extensions-via-nginx\" target=\"_blank\" rel=\"noopener\">Serve static files directly by nginx.<\/a>&rdquo; See <a href=\"https:\/\/docs.plesk.com\/en-US\/obsidian\/customer-guide\/websites-and-domains\/hosting-settings\/web-server-settings\/apache-and-nginx-settings.72320\/#serve-only-files-with-specific-extensions-via-nginx\" target=\"_blank\" rel=\"noopener\">these instructions<\/a> from Plesk to find this setting.<\/p>\n<p class=\"\">Then, copy the rewrite rules from your <strong>Performance &gt; Install<\/strong> menu, and use the W3 Total Cache rewrite rules in the Plesk <strong>Additional nginx directives<\/strong> setting.<\/p>\n<h3 class=\"\" id=\"missing-additional-image-sizes\">Missing Additional Image Sizes<\/h3>\n<p class=\"\">If you find that your original image has been converted to WebP, but other image sizes are missing WebP versions, you may need to double-check that your WordPress environment supports the WebP format.<\/p>\n<p class=\"\">While the original image is converted via our API service, the different sizes (e.g. Large, Medium, Thumbnail) are created by your own server. For this, you must have WordPress 5.8 and the appropriate libGD or ImageMagick package available on your server.<\/p>\n<p class=\"\">To check if your WordPress environment supports WebP, navigate to <strong>Site Health &gt; Info &gt; Media Handling<\/strong> and double-check that WebP is listed in the <strong>supported file formats<\/strong> for the library shown in the <strong>Active editor<\/strong>. If you find these are missing the WebP extension, consult your system administrator to set up the correct packages.<\/p>\n<p class=\"\">Users of cPanel CentOS 7 servers can follow these instructions to <a href=\"https:\/\/support.cpanel.net\/hc\/en-us\/articles\/4403506784919-How-to-enable-the-webp-image-format-for-use-with-ImageMagick-on-cPanel\" target=\"_blank\" rel=\"noopener\">enable WebP support for ImageMagick<\/a>.<\/p>\n<p class=\"\"><a href=\"https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2021\/11\/webp-image-support-site-health.png\"><img loading=\"lazy\" decoding=\"async\" class=\"bg-border alignnone wp-image-45714 size-full\" src=\"https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2021\/11\/webp-image-support-site-health.png\" alt=\"webp image support site health\" width=\"731\" height=\"795\" srcset=\"https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2021\/11\/webp-image-support-site-health.png 731w, https:\/\/www.boldgrid.com\/support\/wp-content\/uploads\/2021\/11\/webp-image-support-site-health-276x300.png 276w\" sizes=\"auto, (max-width: 731px) 100vw, 731px\" \/><\/a><\/p>\n<h3 id=\"unable-to-connect-to-the-filesystem-error\">&ldquo;Unable to connect to the filesystem&rdquo; Error<\/h3>\n<p class=\"\">If you&rsquo;re using an &ldquo;Indirect&rdquo; filesystem access method, such as ssh2, FTP Socket, or FTPext, you may have difficulty performing image conversions. Generally, if you&rsquo;re frequently prompted for credentials when performing tasks in your dashboard, then both automatic and bulk conversions will not work. Consider setting the constant <code>define( 'FS_METHOD', 'direct' );<\/code>, or placing your credentials in <code>wp-config.php<\/code> according to <a href=\"https:\/\/wordpress.org\/support\/article\/editing-wp-config-php\/#wordpress-upgrade-constants\" target=\"_blank\" rel=\"noopener\">these instructions from WordPress.org<\/a>.<\/p>\n<p class=\"\">\t  \n\t<div class=\"bg-proof bg-shadow\">\n\t\t<div>\n\t\t\t<span class=\"bg-green-circle\">+9<\/span>\n\t\t\t<span class=\"bg-green-description\">Points<\/span>\n\t\t<\/div>\n\t\t<div>\n\t\t\t<p>In a recent test, we converted all of our images to WebP and added 9 points to the <strong>Google PageSpeed score<\/strong>! Review the <a href=\"https:\/\/www.boldgrid.com\/support\/w3-total-cache\/pagespeed-tests\/webp\/\">test results<\/a> to see how we did it!<\/p>\n\t\t\t<p>\n\t\t\t\t<a class=\"button-primary\" href=\"https:\/\/www.w3-edge.com\/checkout-standalone-1\/?utm_source=boldgrid&amp;utm_medium=support-on-page&amp;utm_campaign=BoldGrid\" style=\"background: #21759b;padding: 6px 10px;\">Upgrade to W3 Total Cache Pro<\/a> and improve your PageSpeed Scores today!\n\t\t  \t<\/p>\n\t\t\t<div class=\"bg-proof-meta\">\n\t\t\t\t<div><strong>Audit:<\/strong> Google PageSpeed Score<\/div>\n\t\t\t\t<div><strong>Before:<\/strong> 84.67<\/div>\n\t\t\t\t<div><strong>After:<\/strong> 93.83<\/div>\n\t\t\t<\/div>\n\t  \t<\/div>\n\t<\/div>\n\t  \n    <\/p>\n<p class=\"\">Learning how to serve images in next-gen formats like WebP is a smart move for any WordPress site. It improves load times, enhances SEO, and delivers a better user experience. With the <strong>W3 Total Cache<\/strong> plugin, you can seamlessly convert and serve optimized images, ensuring your site stays fast and competitive.<\/p>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/body><\/html>\n","protected":false},"excerpt":{"rendered":"<p>While performing a Google PageSpeed test, you might get the following notice: Serve images in next-gen formats &ndash; Potential savings of 269 Kib Image formats like WebP and AVIF often provide better compression than PNG or JPEG, which means faster downloads and less data consumption. Images are a vital part of any website, enhancing both [&hellip;]<\/p>\n","protected":false},"author":880,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"bgseo_title":"How to Serve Images in Next-Gen Formats in WordPress","bgseo_description":"Learning how to serve images in next-gen formats will help you improve Google PageSpeed Insights results and make your WordPress website faster.\r\n","bgseo_robots_index":"index","bgseo_robots_follow":"follow","footnotes":""},"categories":[747,692],"tags":[],"class_list":["post-44514","post","type-post","status-publish","format-standard","hentry","category-user-experience","category-w3-total-cache"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.boldgrid.com\/support\/wp-json\/wp\/v2\/posts\/44514","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.boldgrid.com\/support\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.boldgrid.com\/support\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.boldgrid.com\/support\/wp-json\/wp\/v2\/users\/880"}],"replies":[{"embeddable":true,"href":"https:\/\/www.boldgrid.com\/support\/wp-json\/wp\/v2\/comments?post=44514"}],"version-history":[{"count":25,"href":"https:\/\/www.boldgrid.com\/support\/wp-json\/wp\/v2\/posts\/44514\/revisions"}],"predecessor-version":[{"id":151570,"href":"https:\/\/www.boldgrid.com\/support\/wp-json\/wp\/v2\/posts\/44514\/revisions\/151570"}],"wp:attachment":[{"href":"https:\/\/www.boldgrid.com\/support\/wp-json\/wp\/v2\/media?parent=44514"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.boldgrid.com\/support\/wp-json\/wp\/v2\/categories?post=44514"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.boldgrid.com\/support\/wp-json\/wp\/v2\/tags?post=44514"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}