{"id":1162,"date":"2022-02-17T08:14:11","date_gmt":"2022-02-17T08:14:11","guid":{"rendered":"https:\/\/imagify.io\/blog\/?p=1162"},"modified":"2024-03-07T11:26:21","modified_gmt":"2024-03-07T11:26:21","slug":"efficiently-encode-images-wordpress","status":"publish","type":"post","link":"https:\/\/imagify.io\/blog\/efficiently-encode-images-wordpress\/","title":{"rendered":"How to Efficiently Encode Images on WordPress and Fix the PageSpeed Warning"},"content":{"rendered":"\n<p>If you run an audit of your WordPress site through PageSpeed Insights, Lighthouse may recommend you efficiently encode your images. PageSpeed Insights (PSI) is a tool that generates a performance report for your entire WordPress page. If it detects that your images could be better optimized, it triggers the \u201cefficiently encode images\u201d warning.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"249\" src=\"https:\/\/imagify.io\/blog\/wp-content\/uploads\/2022\/02\/Efficiently-encode-images-issue-Source-PageSpeed-Insights.png\" alt=\"\u201cEfficiently encode images\u201d issue - Source: PageSpeed Insights\n\" class=\"wp-image-1163\" srcset=\"https:\/\/imagify.io\/blog\/wp-content\/uploads\/2022\/02\/Efficiently-encode-images-issue-Source-PageSpeed-Insights.png 800w, https:\/\/imagify.io\/blog\/wp-content\/uploads\/2022\/02\/Efficiently-encode-images-issue-Source-PageSpeed-Insights-300x93.png 300w, https:\/\/imagify.io\/blog\/wp-content\/uploads\/2022\/02\/Efficiently-encode-images-issue-Source-PageSpeed-Insights-768x239.png 768w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><figcaption class=\"wp-element-caption\">\u201cEfficiently encode images\u201d issue &#8211; Source: <a href=\"https:\/\/pagespeed.web.dev\/\">PageSpeed Insights<\/a><br><\/figcaption><\/figure>\n\n\n\n<p>In this guide, we explain what efficiently encoding images means and how to check the status of<em> your<\/em> images. This is also an effective way to <a href=\"https:\/\/wp-rocket.me\/lighthouse-performance-score-wordpress\/\">improve your Lighthouse performance score<\/a>. We also share 6 image optimization techniques and <strong>a quick way <\/strong>to fix the \u201cEfficiently encode images\u201d warning.<\/p>\n\n\n\n<p>Let\u2019s dive in!<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">What Does Efficiently Encode Images Mean?<\/h2>\n\n\n\n<p>Efficiently encoding images means optimizing images to reduce their file size without significantly impacting their quality.&nbsp;<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">How does Lighthouse flag images as optimizable? What triggers this issue?&nbsp;<\/h4>\n\n\n\n<p>Lighthouse scans all your images on the page you are auditing, then sets the compression level to 85%. If the potential saving is 4 KiB or greater, they will report the image and flag it as an error in your performance report.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"369\" src=\"https:\/\/imagify.io\/blog\/wp-content\/uploads\/2022\/02\/Image-flagged-by-Lighthouse-because-the-potential-saving-is-superior-to-4B-24.6KiB.png\" alt=\"Image flagged by Lighthouse because the potential saving is superior to 4B (24.6KiB)\n\" class=\"wp-image-1164\" srcset=\"https:\/\/imagify.io\/blog\/wp-content\/uploads\/2022\/02\/Image-flagged-by-Lighthouse-because-the-potential-saving-is-superior-to-4B-24.6KiB.png 800w, https:\/\/imagify.io\/blog\/wp-content\/uploads\/2022\/02\/Image-flagged-by-Lighthouse-because-the-potential-saving-is-superior-to-4B-24.6KiB-300x138.png 300w, https:\/\/imagify.io\/blog\/wp-content\/uploads\/2022\/02\/Image-flagged-by-Lighthouse-because-the-potential-saving-is-superior-to-4B-24.6KiB-768x354.png 768w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><figcaption class=\"wp-element-caption\"><em>Image flagged by Lighthouse because the potential saving is superior to 4B (24.6KiB)<\/em><br><\/figcaption><\/figure>\n\n\n\n<p>Uncompressed images at very high quality often result in large file size. And the larger the images are, the more time it will take to download and render them to your visitors. When this happens for <em>all <\/em>your images, the total loading time is likely to increase, and you may end up with a slow website.&nbsp;&nbsp;<\/p>\n\n\n\n<p>To avoid this situation, we are sharing 6 optimization techniques that allow you to properly serve your images on the web.&nbsp;<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">6 Ways to Efficiently Encode Images on WordPress:<\/h2>\n\n\n\n<p>There are six steps you can take to efficiently encode images and tackle this PageSpeed Insight recommendation, including:&nbsp;<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><a href=\"#compressing-images\">Compressing Your Images<\/a><\/li>\n\n\n\n<li><a href=\"#lazy-load\">Implementing Lazy Load<\/a><\/li>\n\n\n\n<li><a href=\"#convert-images-webp\">Converting Images to WebP (Next-gen format)<\/a><\/li>\n\n\n\n<li><a href=\"#serve-images-correct-dimensions\">Serving Images with the Correct Dimensions&nbsp;<\/a><\/li>\n\n\n\n<li><a href=\"#use-image-cdn\">Using an image CDN<\/a><\/li>\n\n\n\n<li><a href=\"#replace-gifs-video\">Replacing Animated GIFs with Video<\/a><\/li>\n<\/ol>\n\n\n\n<p>Let\u2019s go over each step.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"compressing-images\">1. Compressing Your Images<\/h3>\n\n\n\n<p>The goal of image compression is to reduce the image file without compromising too much quality. That makes PageSpeed Insights very happy because the images can be stored and rendered in the most efficient form, making them properly encoded. <a href=\"https:\/\/imagify.io\/blog\/lossless-vs-lossy-image-compression\/\">Image compression may be lossy but lossless<\/a> if you prefer not to touch the image quality.&nbsp;<\/p>\n\n\n\n<p>However, if you use the right tool, lossless compression is not visible to the naked eye.&nbsp;<\/p>\n\n\n\n<p>In our example below, one is the original file, and the other has been compressed. Can you spot the difference? I can\u2019t.&nbsp;<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"324\" src=\"https:\/\/imagify.io\/blog\/wp-content\/uploads\/2022\/02\/originalvsjpeg-compression.png\" alt=\"\" class=\"wp-image-1165\" srcset=\"https:\/\/imagify.io\/blog\/wp-content\/uploads\/2022\/02\/originalvsjpeg-compression.png 800w, https:\/\/imagify.io\/blog\/wp-content\/uploads\/2022\/02\/originalvsjpeg-compression-300x122.png 300w, https:\/\/imagify.io\/blog\/wp-content\/uploads\/2022\/02\/originalvsjpeg-compression-768x311.png 768w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/figure>\n\n\n\n<p>Remember, suboptimal images significantly affect your page speed and slow down your WordPress site. The easiest way to avoid any performance issues is to use a WordPress plugin. Don\u2019t worry. We did the heavy lifting for you, and we have put together <a href=\"https:\/\/imagify.io\/blog\/best-image-compression-plugins\/\">a list of the best image compression plugin for WordPress<\/a>.&nbsp;&nbsp;<\/p>\n\n\n\n<p>If you prefer the manual way to compress your images, we get you covered too. And if you feel overwhelmed by <a href=\"https:\/\/imagify.io\/blog\/best-alternatives-photoshop-image-optimization\/\">PhotoShop and Lightroom, there are plenty of alternative optimization tools<\/a> you can use.&nbsp;<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"lazy-load\">2. Implementing Lazy Load<\/h3>\n\n\n\n<p>Lazy loading helps to efficiently encode your images because it\u2019s an optimization technique aiming to display images only when needed. If the user views them, images will be rendered by the browser. Otherwise, the loading will be deferred to prioritize the most critical content. Google recommends \u201c<a href=\"https:\/\/wp-rocket.me\/google-core-web-vitals-wordpress\/defer-offscreen-images\/\">Defer offscreen images<\/a>\u201d on PageSpeed, which means applying the following lazy load script:&nbsp;<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\u201cloading=lazy\u201d<\/code><\/pre>\n\n\n\n<p>Remember, you should avoid setting this script for any images in the first visible viewport. Instead, apply the delay on the content below-the-fold:&nbsp;<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"598\" src=\"https:\/\/imagify.io\/blog\/wp-content\/uploads\/2022\/02\/Applying-lazy-loading-for-the-content-below-the-fold.png\" alt=\"Applying lazy loading for the content below-the-fold\n\" class=\"wp-image-1166\" srcset=\"https:\/\/imagify.io\/blog\/wp-content\/uploads\/2022\/02\/Applying-lazy-loading-for-the-content-below-the-fold.png 800w, https:\/\/imagify.io\/blog\/wp-content\/uploads\/2022\/02\/Applying-lazy-loading-for-the-content-below-the-fold-300x224.png 300w, https:\/\/imagify.io\/blog\/wp-content\/uploads\/2022\/02\/Applying-lazy-loading-for-the-content-below-the-fold-768x574.png 768w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><figcaption class=\"wp-element-caption\">Applying lazy loading for the content below-the-fold<br><\/figcaption><\/figure>\n\n\n\n<p>If you don\u2019t feel like implementing lazy loading manually, you can use a free WordPress plugin like <a href=\"https:\/\/wordpress.org\/plugins\/rocket-lazy-load\/\">Lazy Load by WP Rocket<\/a> or take a look at <a href=\"https:\/\/wp-rocket.me\/blog\/best-lazy-load-plugins-wordpress\/\">the best lazy load plugins for WordPress<\/a>.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"convert-images-webp\">3. Converting Images to WebP (Next-gen format)<\/h3>\n\n\n\n<p>Developed by Google, WebP is a next-gen image format that provides better lossless and lossy compression for images. This results in encoding your images better on your WordPress site and passing the PageSpeed audit.&nbsp;<\/p>\n\n\n\n<p>In fact, according to Google,&nbsp; \u201cthe average WebP file size is 25%-34% smaller compared to JPEG file size\u201d. This table shows that WebP achieves better compression than the JPEG format:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"609\" src=\"https:\/\/imagify.io\/blog\/wp-content\/uploads\/2022\/02\/WebP-with-a-smaller-file-size-Source-Greenspector.png\" alt=\"WebP with a smaller file size - Source: Greenspector\n\" class=\"wp-image-1167\" srcset=\"https:\/\/imagify.io\/blog\/wp-content\/uploads\/2022\/02\/WebP-with-a-smaller-file-size-Source-Greenspector.png 800w, https:\/\/imagify.io\/blog\/wp-content\/uploads\/2022\/02\/WebP-with-a-smaller-file-size-Source-Greenspector-300x228.png 300w, https:\/\/imagify.io\/blog\/wp-content\/uploads\/2022\/02\/WebP-with-a-smaller-file-size-Source-Greenspector-768x585.png 768w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><figcaption class=\"wp-element-caption\">WebP with a smaller file size &#8211; Source: <a href=\"https:\/\/greenspector.com\/en\/webp-png-jpeg-energy-battle-on-android\/\">Greenspector<\/a><br><\/figcaption><\/figure>\n\n\n\n<p>Are you convinced? Imagify plugin can <a href=\"https:\/\/imagify.io\/blog\/how-to-convert-images-to-webp\/\">convert your images to WebP<\/a> directly from the WordPress dashboard.&nbsp;<\/p>\n\n\n\n<p>If you want to learn more about this next-gen format, we recommend reading <a href=\"https:\/\/imagify.io\/blog\/how-to-use-webp-images-wordpress\/\">how to use WebP format on WordPress<\/a>.\u00a0<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td><strong>\ud83d\udd0a Important to note<\/strong>: as of March 2024, <a href=\"https:\/\/imagify.io\/blog\/convert-images-to-avif-performance\/\">Imagify also converts images to Avif<\/a>, the other next-gen format recommended by Google to make your images lighter.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"serve-images-correct-dimensions\">4. Serving Images with the Correct Dimensions&nbsp;<\/h3>\n\n\n\n<p>Lighthouse makes it easy to find the incorrectly-sized images on your WordPress site. Simply audit your page, and if you find the \u201cProperly size images\u201d warning, you should resize them.<\/p>\n\n\n\n<p>The DevTools Elements panel can also be used to check what size an image is displayed at:&nbsp;<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"153\" src=\"https:\/\/imagify.io\/blog\/wp-content\/uploads\/2022\/02\/Identifying-my-image-size-in-the-Elements-tab-Source-DevTools.png\" alt=\"Identifying my image size in the \u201cElements\u201d tab - Source: DevTools\" class=\"wp-image-1168\" srcset=\"https:\/\/imagify.io\/blog\/wp-content\/uploads\/2022\/02\/Identifying-my-image-size-in-the-Elements-tab-Source-DevTools.png 800w, https:\/\/imagify.io\/blog\/wp-content\/uploads\/2022\/02\/Identifying-my-image-size-in-the-Elements-tab-Source-DevTools-300x57.png 300w, https:\/\/imagify.io\/blog\/wp-content\/uploads\/2022\/02\/Identifying-my-image-size-in-the-Elements-tab-Source-DevTools-768x147.png 768w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><figcaption class=\"wp-element-caption\">Identifying my image size in the \u201cElements\u201d tab &#8211; Source: DevTools<\/figcaption><\/figure>\n\n\n\n<p>That section sounds easy, but given the variety of screen sizes available in 2022, things can quickly get complex.&nbsp;<\/p>\n\n\n\n<p><strong>One rule: ideally, your page should never serve larger images than the user&#8217;s screen.&nbsp;<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>The average desktop screen size is 1920 x 1080 pixels<\/li>\n\n\n\n<li>Most mobile phones have a device width of 400 px&nbsp;<\/li>\n<\/ul>\n\n\n\n<p>For your WordPress site, you can either upload images through the media library or directly on your page. Google recommends ensuring that the optimal image sizes are used (including those for the responsive breakpoints). The key is to avoid using Full-Size images and resize them properly:&nbsp;<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Try to keep your image file size under 200 KB<\/li>\n\n\n\n<li>For most images, a max-width of 800 pixels is enough&nbsp;<\/li>\n<\/ul>\n\n\n\n<p><strong>Keeping images between these numbers will ensure that they load quickly on the user\u2019s devices.&nbsp;<\/strong><\/p>\n\n\n\n<p>You can go further and optimize your images according to each device as shown below on Sketch:&nbsp;<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"558\" height=\"1024\" src=\"https:\/\/imagify.io\/blog\/wp-content\/uploads\/2022\/02\/Apple-devices-dimensions-Source-Sketch-Software-558x1024.png\" alt=\"Apple devices dimensions - Source: Sketch Software\n\n\" class=\"wp-image-1169\" srcset=\"https:\/\/imagify.io\/blog\/wp-content\/uploads\/2022\/02\/Apple-devices-dimensions-Source-Sketch-Software-558x1024.png 558w, https:\/\/imagify.io\/blog\/wp-content\/uploads\/2022\/02\/Apple-devices-dimensions-Source-Sketch-Software-163x300.png 163w, https:\/\/imagify.io\/blog\/wp-content\/uploads\/2022\/02\/Apple-devices-dimensions-Source-Sketch-Software-768x1410.png 768w, https:\/\/imagify.io\/blog\/wp-content\/uploads\/2022\/02\/Apple-devices-dimensions-Source-Sketch-Software.png 800w\" sizes=\"auto, (max-width: 558px) 100vw, 558px\" \/><figcaption class=\"wp-element-caption\">Apple devices dimensions &#8211; Source: Sketch Software<br><\/figcaption><\/figure>\n\n\n\n<p>You have many choices to properly size your images and avoid your website slowing down:&nbsp;<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Do it manually with tools like Photoshop, Lightroom, Gimp, etc.&nbsp;<\/li>\n\n\n\n<li>Use an image optimization plugin like Imagify. Similar to the compression, you can also use bulk to resize all of the existing images on your site:<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"455\" src=\"https:\/\/imagify.io\/blog\/wp-content\/uploads\/2022\/02\/Resizing-properly-my-images-Source-Imagify.png\" alt=\"Resizing properly my images - Source: Imagify\n\" class=\"wp-image-1170\" srcset=\"https:\/\/imagify.io\/blog\/wp-content\/uploads\/2022\/02\/Resizing-properly-my-images-Source-Imagify.png 800w, https:\/\/imagify.io\/blog\/wp-content\/uploads\/2022\/02\/Resizing-properly-my-images-Source-Imagify-300x171.png 300w, https:\/\/imagify.io\/blog\/wp-content\/uploads\/2022\/02\/Resizing-properly-my-images-Source-Imagify-768x437.png 768w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><figcaption class=\"wp-element-caption\">Resizing properly my images &#8211; Source: Imagify<br><\/figcaption><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"use-image-cdn\">5. Using an Image CDN<\/h3>\n\n\n\n<p>To efficiently encode images on WordPress, you should opt for a CDN provider. It will deliver your images faster and help get rid of Google PageSpeed image-related issues. <a href=\"https:\/\/rocketcdn.me\/benefits-cdn\/\">A CDN offers many benefits<\/a> and specializes in the optimization and delivery of images wherever your users are located in the world:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"583\" src=\"https:\/\/imagify.io\/blog\/wp-content\/uploads\/2022\/02\/50-edge-locations-to-deliver-images-faster-Source-RocketCDN.png\" alt=\"\" class=\"wp-image-1171\" srcset=\"https:\/\/imagify.io\/blog\/wp-content\/uploads\/2022\/02\/50-edge-locations-to-deliver-images-faster-Source-RocketCDN.png 800w, https:\/\/imagify.io\/blog\/wp-content\/uploads\/2022\/02\/50-edge-locations-to-deliver-images-faster-Source-RocketCDN-300x219.png 300w, https:\/\/imagify.io\/blog\/wp-content\/uploads\/2022\/02\/50-edge-locations-to-deliver-images-faster-Source-RocketCDN-768x560.png 768w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><figcaption class=\"wp-element-caption\">+50 edge locations to deliver images faster &#8211; Source: <a href=\"https:\/\/rocketcdn.me\/features\/\">RocketCDN<\/a><br><\/figcaption><\/figure>\n\n\n\n<p>According to WebDev, \u201cswitching to an image CDN can yield a 40\u201380% savings in image file size\u201d, as shown below:&nbsp;<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"349\" src=\"https:\/\/imagify.io\/blog\/wp-content\/uploads\/2022\/02\/Image-byte-savings-after-switching-to-a-CDN-Source-Google-Chrome-Developers.png\" alt=\"\" class=\"wp-image-1172\" srcset=\"https:\/\/imagify.io\/blog\/wp-content\/uploads\/2022\/02\/Image-byte-savings-after-switching-to-a-CDN-Source-Google-Chrome-Developers.png 800w, https:\/\/imagify.io\/blog\/wp-content\/uploads\/2022\/02\/Image-byte-savings-after-switching-to-a-CDN-Source-Google-Chrome-Developers-300x131.png 300w, https:\/\/imagify.io\/blog\/wp-content\/uploads\/2022\/02\/Image-byte-savings-after-switching-to-a-CDN-Source-Google-Chrome-Developers-768x335.png 768w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><figcaption class=\"wp-element-caption\">Image byte savings after switching to a CDN &#8211; Source: <a href=\"https:\/\/www.youtube.com\/watch?v=YJGCZCaIZkQ&amp;t=1010s\">Google Chrome Developers<\/a><br><\/figcaption><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"replace-gifs-video\">6. Replacing Animated GIFs with Video<\/h3>\n\n\n\n<p>Replacing an animated GIF with a video will improve performance because a .mp4 video is much lighter than a GIF, as you can see in my example below:<br><br>&#8211; GIF file size: 12 MB<br>&#8211; MP4 file size: 286 KB (<strong>total savings: 98%<\/strong>)<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"326\" src=\"https:\/\/imagify.io\/blog\/wp-content\/uploads\/2022\/02\/GIF-vs-MP4-file-size.png\" alt=\"\" class=\"wp-image-1173\" srcset=\"https:\/\/imagify.io\/blog\/wp-content\/uploads\/2022\/02\/GIF-vs-MP4-file-size.png 800w, https:\/\/imagify.io\/blog\/wp-content\/uploads\/2022\/02\/GIF-vs-MP4-file-size-300x122.png 300w, https:\/\/imagify.io\/blog\/wp-content\/uploads\/2022\/02\/GIF-vs-MP4-file-size-768x313.png 768w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><figcaption class=\"wp-element-caption\">GIF vs MP4 file size<\/figcaption><\/figure>\n\n\n\n<p>PageSpeed also recommends to serve your animated content through the video format and not using GIF. When you convert your content to MP4, make sure to have the right settings to make it look like a GIF:<br>&#8211; It should loop continuously<br>&#8211; It should play automatically<br>&#8211; It should be silent<br><br>There are a number of ways to convert GIFs to video, I\u2019ve used <a href=\"https:\/\/ezgif.com\/gif-to-mp4\/ezgif-1-2c0e3a3526.gif\">Ezgif<\/a> for the above comparison.&nbsp;<\/p>\n\n\n\n<p>Now that we have seen the 6 optimization techniques to efficiently encode images on WordPress, let me share my performance toolbox with you. It can be useful if you need to boost the speed of your WordPress site and make sure that your images are well optimized for the web.&nbsp;<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td><strong>\u2692\ufe0f <\/strong>&nbsp;<strong>My toolbox to keep images optimized and always pass the PageSpeed Insights audits (including efficiently encode images):&nbsp;<\/strong><br><br>&#8211; <a href=\"https:\/\/imagify.io\/pricing\/\">Imagify<\/a>, to compress my images and serve them to WebP (free for 20 MB of images every month)<br>&#8211; <a href=\"https:\/\/wordpress.org\/plugins\/rocket-lazy-load\/\">Lazy Load by WP Rocket<\/a> (free)<br>&#8211; <a href=\"https:\/\/rocketcdn.me\/\">RocketCDN<\/a> for delivering my images faster (only $8.99\/mo for unlimited bandwidth)<br>&#8211; <a href=\"https:\/\/ezgif.com\/gif-to-mp4\">Ezgif<\/a> (free tool to convert .gif into .mp4)<br>&#8211; <a href=\"https:\/\/wp-rocket.me\/features\/\">WP Rocket, one of the best performance plugins to boost speed<\/a> in a few clicks (helps the Core Web Vitals improve)&nbsp;<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>In the next section, we are going to focus on Imagify, our powerful image compression plugin that efficiently encodes images automatically.&nbsp;<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">How to Fix Efficiently Encoding Images With Imagify<\/h2>\n\n\n\n<p>Thanks to Imagify, you can compress your images without compromising quality and fix the \u201cEfficiently encode image\u201d warning.&nbsp;<\/p>\n\n\n\n<p>It\u2019s time to see Imagify in action and compare PageSpeed insights with and without Imagify.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"459\" height=\"1024\" src=\"https:\/\/imagify.io\/blog\/wp-content\/uploads\/2022\/02\/My-demo-site-with-HD-images-459x1024.jpg\" alt=\"\" class=\"wp-image-1176\" srcset=\"https:\/\/imagify.io\/blog\/wp-content\/uploads\/2022\/02\/My-demo-site-with-HD-images-459x1024.jpg 459w, https:\/\/imagify.io\/blog\/wp-content\/uploads\/2022\/02\/My-demo-site-with-HD-images-134x300.jpg 134w, https:\/\/imagify.io\/blog\/wp-content\/uploads\/2022\/02\/My-demo-site-with-HD-images.jpg 560w\" sizes=\"auto, (max-width: 459px) 100vw, 459px\" \/><figcaption class=\"wp-element-caption\">My demo site with HD images<br><\/figcaption><\/figure><\/div>\n\n\n<p><strong>Before Imagify &#8211; My performance results on PageSpeed Insights<\/strong><\/p>\n\n\n\n<p>Lighthouse is not giving any great results, and I\u2019m getting a few image-related issues, namely:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Efficiently encode images <\/strong>(which is our topic for today)<\/li>\n\n\n\n<li>Serve images in next-gen formats<\/li>\n\n\n\n<li>Properly size images&nbsp;<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"573\" src=\"https:\/\/imagify.io\/blog\/wp-content\/uploads\/2022\/02\/Issues-flagged-by-Lighthouse-before-Imagify-optimization.png\" alt=\"Issues flagged by Lighthouse (before Imagify optimization)\n\" class=\"wp-image-1177\" srcset=\"https:\/\/imagify.io\/blog\/wp-content\/uploads\/2022\/02\/Issues-flagged-by-Lighthouse-before-Imagify-optimization.png 800w, https:\/\/imagify.io\/blog\/wp-content\/uploads\/2022\/02\/Issues-flagged-by-Lighthouse-before-Imagify-optimization-300x215.png 300w, https:\/\/imagify.io\/blog\/wp-content\/uploads\/2022\/02\/Issues-flagged-by-Lighthouse-before-Imagify-optimization-768x550.png 768w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><figcaption class=\"wp-element-caption\">Issues flagged by Lighthouse (before Imagify optimization)<br><\/figcaption><\/figure>\n\n\n\n<p>Now it\u2019s time to <a href=\"https:\/\/wordpress.org\/plugins\/imagify\/\">download Imagify<\/a> to compress and <a href=\"https:\/\/imagify.io\/blog\/serve-next-gen-formats-wordpress\/\">serve our images in next-gen formats<\/a>, <a href=\"https:\/\/imagify.io\/blog\/resize-compress-large-images-in-bulk\/\">properly size them<\/a>, and of course, efficiently encode them.&nbsp;<\/p>\n\n\n\n<p><strong>With Imagify &#8211; Performance results on PageSpeed Insights<\/strong><\/p>\n\n\n\n<p>\u2705 Imagify has fixed the \u201cEfficiently encode image\u201d warning! It has also optimized all my images and put my previous issues in the passed audit area:&nbsp;<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"256\" src=\"https:\/\/imagify.io\/blog\/wp-content\/uploads\/2022\/02\/Images-encoded-properly-with-Imagify-passed-audit-Source-PSI-1024x256.png\" alt=\"Images encoded properly with Imagify (passed audit) - Source: PSI\n\" class=\"wp-image-1178\" srcset=\"https:\/\/imagify.io\/blog\/wp-content\/uploads\/2022\/02\/Images-encoded-properly-with-Imagify-passed-audit-Source-PSI-1024x256.png 1024w, https:\/\/imagify.io\/blog\/wp-content\/uploads\/2022\/02\/Images-encoded-properly-with-Imagify-passed-audit-Source-PSI-300x75.png 300w, https:\/\/imagify.io\/blog\/wp-content\/uploads\/2022\/02\/Images-encoded-properly-with-Imagify-passed-audit-Source-PSI-768x192.png 768w, https:\/\/imagify.io\/blog\/wp-content\/uploads\/2022\/02\/Images-encoded-properly-with-Imagify-passed-audit-Source-PSI.png 1111w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><figcaption class=\"wp-element-caption\">Images encoded properly with Imagify (passed audit) &#8211; Source: PSI<br><\/figcaption><\/figure>\n\n\n\n<p><strong>\u2705 Imagify reduced my image file size by 90%<\/strong> &#8211; it went from almost 2 MB to 200 KB, as shown in our example below:&nbsp;<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"212\" src=\"https:\/\/imagify.io\/blog\/wp-content\/uploads\/2022\/02\/Imagify-optimizing-my-images-and-saving-almost-90-of-the-file-size-.png\" alt=\"Imagify optimizing my images and saving almost 90% of the file size \n\" class=\"wp-image-1179\" srcset=\"https:\/\/imagify.io\/blog\/wp-content\/uploads\/2022\/02\/Imagify-optimizing-my-images-and-saving-almost-90-of-the-file-size-.png 800w, https:\/\/imagify.io\/blog\/wp-content\/uploads\/2022\/02\/Imagify-optimizing-my-images-and-saving-almost-90-of-the-file-size--300x80.png 300w, https:\/\/imagify.io\/blog\/wp-content\/uploads\/2022\/02\/Imagify-optimizing-my-images-and-saving-almost-90-of-the-file-size--768x204.png 768w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><figcaption class=\"wp-element-caption\">Imagify optimizing my images and saving almost 90% of the file size&nbsp;<\/figcaption><\/figure>\n\n\n\n<p><strong>\ud83d\udc49Do you want to get rid of the \u201cefficiently encore image\u201d warning, just like I did?<\/strong><\/p>\n\n\n\n<p>Install Imagify and apply the following settings:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/imagify.io\/documentation\/recommended-imagify-settings\/\">Set-up Imagify <\/a>(it\u2019s straightforward)<\/li>\n\n\n\n<li>Automatically optimize images thanks to <a href=\"https:\/\/imagify.io\/blog\/imagify-smart-compression\/\">Smart Compression<\/a><\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"524\" src=\"https:\/\/imagify.io\/blog\/wp-content\/uploads\/2022\/07\/New-Compression-Levels-Imagify-App-1024x524.png\" alt=\"\" class=\"wp-image-1497\" srcset=\"https:\/\/imagify.io\/blog\/wp-content\/uploads\/2022\/07\/New-Compression-Levels-Imagify-App-1024x524.png 1024w, https:\/\/imagify.io\/blog\/wp-content\/uploads\/2022\/07\/New-Compression-Levels-Imagify-App-300x154.png 300w, https:\/\/imagify.io\/blog\/wp-content\/uploads\/2022\/07\/New-Compression-Levels-Imagify-App-768x393.png 768w, https:\/\/imagify.io\/blog\/wp-content\/uploads\/2022\/07\/New-Compression-Levels-Imagify-App-1536x786.png 1536w, https:\/\/imagify.io\/blog\/wp-content\/uploads\/2022\/07\/New-Compression-Levels-Imagify-App-745x380.png 745w, https:\/\/imagify.io\/blog\/wp-content\/uploads\/2022\/07\/New-Compression-Levels-Imagify-App.png 1600w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Convert your images to WebP, the next-gen format recommended by PageSpeed Insights:&nbsp;<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"280\" src=\"https:\/\/imagify.io\/blog\/wp-content\/uploads\/2022\/02\/WebP-conversion-in-one-click-Source-Imagify.png\" alt=\"WebP conversion in one click - Source: Imagify\n\" class=\"wp-image-1181\" srcset=\"https:\/\/imagify.io\/blog\/wp-content\/uploads\/2022\/02\/WebP-conversion-in-one-click-Source-Imagify.png 800w, https:\/\/imagify.io\/blog\/wp-content\/uploads\/2022\/02\/WebP-conversion-in-one-click-Source-Imagify-300x105.png 300w, https:\/\/imagify.io\/blog\/wp-content\/uploads\/2022\/02\/WebP-conversion-in-one-click-Source-Imagify-768x269.png 768w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><figcaption class=\"wp-element-caption\">WebP conversion in one click &#8211; Source: <a href=\"https:\/\/imagify.io\/\">Imagify<\/a><br><\/figcaption><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Optimize your <a href=\"https:\/\/imagify.io\/blog\/resize-compress-large-images-in-bulk\/\">large images in bulk with Imagify<\/a>. (<em>That means optimizing the entire library in one single click!)<\/em><\/li>\n\n\n\n<li>And just like that, The PSI warning disappeared.&nbsp;<\/li>\n<\/ul>\n\n\n\n<p><strong>It\u2019s worth mentioning that this image optimization process was entirely free!&nbsp;<\/strong><\/p>\n\n\n\n<p>The free version of Imagify lets you resize and compress 20 MB worth of images per month. If you are planning to add more images, you can opt for the following <a href=\"https:\/\/imagify.io\/pricing\/\">premium pricing<\/a>:&nbsp;<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>$5.99 per month for 500 GB (around 5000 images)<\/li>\n\n\n\n<li>and $9.99 per month for unlimited usage.&nbsp;<\/li>\n<\/ul>\n\n\n\n<p>If you still have doubts,&nbsp; PageSpeed Insights also recommends using an image optimization plugin like Imagify:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"402\" src=\"https:\/\/imagify.io\/blog\/wp-content\/uploads\/2022\/02\/Imagify-plugin-recommended-by-PSI-as-a-solution-to-efficiently-encode-images.png\" alt=\"\" class=\"wp-image-1182\" srcset=\"https:\/\/imagify.io\/blog\/wp-content\/uploads\/2022\/02\/Imagify-plugin-recommended-by-PSI-as-a-solution-to-efficiently-encode-images.png 800w, https:\/\/imagify.io\/blog\/wp-content\/uploads\/2022\/02\/Imagify-plugin-recommended-by-PSI-as-a-solution-to-efficiently-encode-images-300x151.png 300w, https:\/\/imagify.io\/blog\/wp-content\/uploads\/2022\/02\/Imagify-plugin-recommended-by-PSI-as-a-solution-to-efficiently-encode-images-768x386.png 768w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><figcaption class=\"wp-element-caption\">Imagify plugin recommended by PSI as a solution to efficiently encode images<\/figcaption><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Wrapping up<\/h2>\n\n\n\n<p>Without Imagify, PageSpeed flagged several issues for my images:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"230\" src=\"https:\/\/imagify.io\/blog\/wp-content\/uploads\/2022\/02\/My-website-without-Imagify-Source-PSI-.png\" alt=\"My website without Imagify - Source: PSI\n\" class=\"wp-image-1183\" srcset=\"https:\/\/imagify.io\/blog\/wp-content\/uploads\/2022\/02\/My-website-without-Imagify-Source-PSI-.png 800w, https:\/\/imagify.io\/blog\/wp-content\/uploads\/2022\/02\/My-website-without-Imagify-Source-PSI--300x86.png 300w, https:\/\/imagify.io\/blog\/wp-content\/uploads\/2022\/02\/My-website-without-Imagify-Source-PSI--768x221.png 768w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><figcaption class=\"wp-element-caption\">My website without Imagify &#8211; Source: <a href=\"https:\/\/pagespeed.web.dev\/?utm_source=psi&amp;utm_medium=redirect&amp;hl=en\">PSI<\/a><br><\/figcaption><\/figure>\n\n\n\n<p>When using Imagify, all my image-related issues were fixed. They were optimized in one of the next-gen formats (WebP) and my \u201cefficiently encode images\u201d warning finally turned to green.&nbsp;<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"256\" src=\"https:\/\/imagify.io\/blog\/wp-content\/uploads\/2022\/02\/My-website-passed-the-audit-with-Imagify-1024x256.png\" alt=\"My website passed the audit with Imagify\n\" class=\"wp-image-1184\" srcset=\"https:\/\/imagify.io\/blog\/wp-content\/uploads\/2022\/02\/My-website-passed-the-audit-with-Imagify-1024x256.png 1024w, https:\/\/imagify.io\/blog\/wp-content\/uploads\/2022\/02\/My-website-passed-the-audit-with-Imagify-300x75.png 300w, https:\/\/imagify.io\/blog\/wp-content\/uploads\/2022\/02\/My-website-passed-the-audit-with-Imagify-768x192.png 768w, https:\/\/imagify.io\/blog\/wp-content\/uploads\/2022\/02\/My-website-passed-the-audit-with-Imagify.png 1111w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><figcaption class=\"wp-element-caption\">My website passed the audit with Imagify<br><\/figcaption><\/figure>\n\n\n\n<p>If you are like me and you want to efficiently encode your images in WordPress in a few clicks, then why not use Imagify? You can <a href=\"https:\/\/imagify.io\/optimizer\/#page\">try Imagify for free<\/a>, optimize your images and run your own audit on PageSpeed Insights, just like I did. Let me know in the comments if you also passed the test thanks to Imagify, I\u2019m curious!<\/p>\n<a href=\"https:\/\/imagify.io\/optimizer\/\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter bottom-blog-post-cta\" src=\"https:\/\/imagify.io\/blog\/wp-content\/themes\/imagify\/assets\/img\/gwic-1.png\" alt=\"Imagify, decrease the size of your images, increase the speed of your website: try it for free\" width=\"690\" height=\"190\"><\/a>","protected":false},"excerpt":{"rendered":"<p>Do you know how to efficiently encode images and address this PageSpeed Insights recommendation? Don&#8217;t worry: you&#8217;ll learn everything from our article.<\/p>\n","protected":false},"author":8,"featured_media":1198,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[],"class_list":["post-1162","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-image-optimization"],"_links":{"self":[{"href":"https:\/\/imagify.io\/blog\/wp-json\/wp\/v2\/posts\/1162","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/imagify.io\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/imagify.io\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/imagify.io\/blog\/wp-json\/wp\/v2\/users\/8"}],"replies":[{"embeddable":true,"href":"https:\/\/imagify.io\/blog\/wp-json\/wp\/v2\/comments?post=1162"}],"version-history":[{"count":15,"href":"https:\/\/imagify.io\/blog\/wp-json\/wp\/v2\/posts\/1162\/revisions"}],"predecessor-version":[{"id":2398,"href":"https:\/\/imagify.io\/blog\/wp-json\/wp\/v2\/posts\/1162\/revisions\/2398"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/imagify.io\/blog\/wp-json\/wp\/v2\/media\/1198"}],"wp:attachment":[{"href":"https:\/\/imagify.io\/blog\/wp-json\/wp\/v2\/media?parent=1162"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/imagify.io\/blog\/wp-json\/wp\/v2\/categories?post=1162"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/imagify.io\/blog\/wp-json\/wp\/v2\/tags?post=1162"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}