{"id":1636,"date":"2022-09-28T06:32:18","date_gmt":"2022-09-28T06:32:18","guid":{"rendered":"https:\/\/imagify.io\/blog\/?p=1636"},"modified":"2024-03-07T11:17:57","modified_gmt":"2024-03-07T11:17:57","slug":"make-responsive-images","status":"publish","type":"post","link":"https:\/\/imagify.io\/blog\/make-responsive-images\/","title":{"rendered":"How to Make Responsive Images (And Why You Need Them)"},"content":{"rendered":"\n<p>Want to know why and how you should make responsive images that match all types of screens? In this article, we\u2019ll go over the concept of responsive images for each device, how to make an image responsive, and share a few more image optimization techniques to boost performance.&nbsp;<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">What Are Responsive Images and Why They&#8217;re Important<\/h2>\n\n\n\n<p>Responsive images mean your browser knows which image to load based on the user\u2019s device, screen size, orientation, and network.&nbsp;<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"500\" src=\"https:\/\/imagify.io\/blog\/wp-content\/uploads\/2022\/09\/Responsive-images-in-web-design-Source-Imagify-.png\" alt=\"Responsive images in web design - Source: Imagify\n\" class=\"wp-image-1637\" srcset=\"https:\/\/imagify.io\/blog\/wp-content\/uploads\/2022\/09\/Responsive-images-in-web-design-Source-Imagify-.png 800w, https:\/\/imagify.io\/blog\/wp-content\/uploads\/2022\/09\/Responsive-images-in-web-design-Source-Imagify--300x188.png 300w, https:\/\/imagify.io\/blog\/wp-content\/uploads\/2022\/09\/Responsive-images-in-web-design-Source-Imagify--768x480.png 768w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><figcaption class=\"wp-element-caption\">Responsive images in web design &#8211; Source: <a href=\"https:\/\/imagify.io\/\">Imagify<\/a><br><\/figcaption><\/figure>\n\n\n\n<p>You need responsive images to serve a fast web page to your users across all devices (mobile, tablet, and desktop). If you don\u2019t make your images responsive, the same image size will be served to someone using a large-resolution computer or a smartphone. This lack of adaptability toward the user and the network will have a negative impact on performance.&nbsp;<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Impact of Responsive Images on Performance<\/h3>\n\n\n\n<p>By <a href=\"https:\/\/imagify.io\/blog\/how-to-optimize-images-for-mobile\/\">optimizing large images on mobile<\/a> and making use of responsive image techniques, you will significantly improve your performance metrics.&nbsp;<\/p>\n\n\n\n<p>Let\u2019s share a few facts about responsive images!<\/p>\n\n\n\n<p><strong>Performance fact #1 <strong>&#8211;<\/strong> Responsive images improve your page load speed.<\/strong><\/p>\n\n\n\n<p>In the example below, we can see the benefits of using responsive images on performance. <\/p>\n\n\n\n<p>When optimizing and serving responsive images, the page loading speed was reduced from 8.7 seconds to 4.2 (a decrease of 52%).<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"470\" src=\"https:\/\/imagify.io\/blog\/wp-content\/uploads\/2022\/09\/Responsive-images-loading-test-TTI-Source-YOTTA-.png\" alt=\"Responsive images loading test - TTI Source: YOTTA\n\" class=\"wp-image-1638\" srcset=\"https:\/\/imagify.io\/blog\/wp-content\/uploads\/2022\/09\/Responsive-images-loading-test-TTI-Source-YOTTA-.png 800w, https:\/\/imagify.io\/blog\/wp-content\/uploads\/2022\/09\/Responsive-images-loading-test-TTI-Source-YOTTA--300x176.png 300w, https:\/\/imagify.io\/blog\/wp-content\/uploads\/2022\/09\/Responsive-images-loading-test-TTI-Source-YOTTA--768x451.png 768w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><figcaption class=\"wp-element-caption\">Responsive images loading test &#8211; TTI Source: <a href=\"https:\/\/www.yottaa.com\/\">YOTTA<\/a><br><\/figcaption><\/figure>\n\n\n\n<p><strong>Performance Fact #2 <strong>&#8211;<\/strong> Images consume 60% bandwidth when loading a web page. <\/strong><\/p>\n\n\n\n<p>Images are the dominant resource on a web page, which is why you should make sure to serve the right size to the visitors.&nbsp; Almost 80% won\u2019t return to a slow website, and you don\u2019t want this to happen for your business. When optimizing your site for performance, try to include everyone and remember that responsive images are more accessible to users on mobile and slow connections.&nbsp;<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"322\" src=\"https:\/\/imagify.io\/blog\/wp-content\/uploads\/2022\/09\/64-of-page-weight-is-occupied-by-images-Source-hubspot.com-.png\" alt=\"64% of page weight is occupied by images - Source: hubspot.com\n\" class=\"wp-image-1639\" srcset=\"https:\/\/imagify.io\/blog\/wp-content\/uploads\/2022\/09\/64-of-page-weight-is-occupied-by-images-Source-hubspot.com-.png 800w, https:\/\/imagify.io\/blog\/wp-content\/uploads\/2022\/09\/64-of-page-weight-is-occupied-by-images-Source-hubspot.com--300x121.png 300w, https:\/\/imagify.io\/blog\/wp-content\/uploads\/2022\/09\/64-of-page-weight-is-occupied-by-images-Source-hubspot.com--768x309.png 768w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><figcaption class=\"wp-element-caption\">64% of page weight is occupied by images &#8211; Source: <a href=\"https:\/\/www.hubspot.com\/\">hubspot.com<\/a><br><\/figcaption><\/figure>\n\n\n\n<p><strong>Performance Fact #3 &#8211; The number of HTTP requests per page is mainly done by images.&nbsp;<\/strong><\/p>\n\n\n\n<p>A high-resolution image can generate a very large file size, which drastically affects performance because the browser will be busy for a long time downloading this resource. To avoid a slow browser execution time with many HTTP requests, you should try to serve responsive images, so mobile users don\u2019t have to display a 2400 px wide image.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"409\" src=\"https:\/\/imagify.io\/blog\/wp-content\/uploads\/2022\/09\/Requests-by-content-type-Source-almanac-HTTP-archive-.png\" alt=\"Requests by content type - Source: almanac HTTP archive\n\" class=\"wp-image-1640\" srcset=\"https:\/\/imagify.io\/blog\/wp-content\/uploads\/2022\/09\/Requests-by-content-type-Source-almanac-HTTP-archive-.png 800w, https:\/\/imagify.io\/blog\/wp-content\/uploads\/2022\/09\/Requests-by-content-type-Source-almanac-HTTP-archive--300x153.png 300w, https:\/\/imagify.io\/blog\/wp-content\/uploads\/2022\/09\/Requests-by-content-type-Source-almanac-HTTP-archive--768x393.png 768w, https:\/\/imagify.io\/blog\/wp-content\/uploads\/2022\/09\/Requests-by-content-type-Source-almanac-HTTP-archive--745x380.png 745w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><figcaption class=\"wp-element-caption\">Requests by content type &#8211; Source: <a href=\"https:\/\/almanac.httparchive.org\/en\/2020\/page-weight\">almanac HTTP archive<\/a><br><\/figcaption><\/figure>\n\n\n\n<p><strong>Performance Fact #4 <strong>&#8211;<\/strong><\/strong> <strong>Serving responsive images means that you efficiently use your bandwidth. <\/strong>&nbsp;<br><br>Lighthouse tells you to <a href=\"https:\/\/imagify.io\/blog\/properly-size-images\/\">properly size images<\/a> and <a href=\"https:\/\/imagify.io\/blog\/efficiently-encode-images-wordpress\/\">efficiently encode images<\/a> to save mobile data and bandwidth and improve the overall load time.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"403\" src=\"https:\/\/imagify.io\/blog\/wp-content\/uploads\/2022\/09\/Properly-size-images-audit-Source-GTmetrix-.png\" alt=\"Properly size images audit - Source: GTmetrix\n\" class=\"wp-image-1641\" srcset=\"https:\/\/imagify.io\/blog\/wp-content\/uploads\/2022\/09\/Properly-size-images-audit-Source-GTmetrix-.png 800w, https:\/\/imagify.io\/blog\/wp-content\/uploads\/2022\/09\/Properly-size-images-audit-Source-GTmetrix--300x151.png 300w, https:\/\/imagify.io\/blog\/wp-content\/uploads\/2022\/09\/Properly-size-images-audit-Source-GTmetrix--768x387.png 768w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><figcaption class=\"wp-element-caption\">Properly size images audit &#8211; Source: <a href=\"https:\/\/gtmetrix.com\/properly-size-images.html\">GTmetrix<\/a><br><\/figcaption><\/figure>\n\n\n\n<p>Images are often the main culprit for performance issues. That\u2019s why serving responsive images is crucial for a better cross-device experience. Properly sizing your images according to the user&#8217;s device boosts your visitors&#8217; satisfaction as all major performance metrics are also improved. And last but not least, you\u2019ll also lower your bandwidth consumption.<\/p>\n\n\n\n<p>Now that you know why responsive images are important in web design let\u2019s see how to make <em>them<\/em> responsive. In the next section, you will learn how to create responsive images on the web so that your images load quickly <strong>and<\/strong> look great on any device.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">How to Make Responsive Images on WordPress<\/h2>\n\n\n\n<p>The best way to make responsive images is to use the \u201csrc\u201d, \u201csrcset\u201d and \u201csize\u201d attributes.&nbsp;<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"500\" src=\"https:\/\/imagify.io\/blog\/wp-content\/uploads\/2022\/09\/Responsive-images-code-snippet-Source-Imagify-.png\" alt=\"Responsive images code snippet - Source: Imagify\n\" class=\"wp-image-1642\" srcset=\"https:\/\/imagify.io\/blog\/wp-content\/uploads\/2022\/09\/Responsive-images-code-snippet-Source-Imagify-.png 800w, https:\/\/imagify.io\/blog\/wp-content\/uploads\/2022\/09\/Responsive-images-code-snippet-Source-Imagify--300x188.png 300w, https:\/\/imagify.io\/blog\/wp-content\/uploads\/2022\/09\/Responsive-images-code-snippet-Source-Imagify--768x480.png 768w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><figcaption class=\"wp-element-caption\">Responsive images code snippet &#8211; Source: <a href=\"https:\/\/imagify.io\/\">Imagify<\/a><br><\/figcaption><\/figure>\n\n\n\n<p>But before we explain how to make an image responsive, let\u2019s go over some basic knowledge about responsive design.&nbsp;<br><br>\ud83d\udca1HTML has its syntax, elements, and attributes for responsive images that let you serve different images for different viewports, such as:&nbsp;<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>The &lt;img&gt; tag &#8211;&nbsp; Used to <em>embed<\/em> an image in a page. Images are not technically inserted into a web page; images are <em>linked<\/em> to web pages.&nbsp;<\/li>\n\n\n\n<li>The \u201csrc\u201d attribute &#8211; Specifies the URL of the media file to display.<\/li>\n\n\n\n<li>The \u201csrcset\u201d attribute &#8211; This attribute describes to the browser how the image should behave. You assign an image width so the browser checks the image that matches the browser width.<\/li>\n\n\n\n<li>The sizes attribute -Specifies the size the image should scale to select the most efficient image according to the proportion of the screen.<\/li>\n\n\n\n<li>The &lt;picture&gt; and &lt;source&gt; elements &#8211; Dictates what image the browser should use. You can specify different images depending on device characteristics.<\/li>\n\n\n\n<li>Device Pixel Ratio (DPR) &#8211; Number of pixels on the screen.<\/li>\n<\/ul>\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\/09\/Different-devices-with-different-device-pixel-ratios-Source-GTmetrix-.png\" alt=\"Different devices with different device pixel ratios- Source: GTmetrix\n\" class=\"wp-image-1643\" srcset=\"https:\/\/imagify.io\/blog\/wp-content\/uploads\/2022\/09\/Different-devices-with-different-device-pixel-ratios-Source-GTmetrix-.png 800w, https:\/\/imagify.io\/blog\/wp-content\/uploads\/2022\/09\/Different-devices-with-different-device-pixel-ratios-Source-GTmetrix--300x122.png 300w, https:\/\/imagify.io\/blog\/wp-content\/uploads\/2022\/09\/Different-devices-with-different-device-pixel-ratios-Source-GTmetrix--768x313.png 768w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><figcaption class=\"wp-element-caption\">Different devices with different device pixel ratios- Source: <a href=\"https:\/\/gtmetrix.com\/properly-size-images.html\">GTmetrix<\/a><br><\/figcaption><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">Using The \u201csrcset\u201d and \u201csizes\u201d Attributes To Make Images Responsive<\/h3>\n\n\n\n<p>In web design, a basic code to display an image looks like this:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;img src=\"cute-cat-800w.jpg\" alt=\"a nice cat\" \/&gt;\n<\/code><\/pre>\n\n\n\n<p>To make it responsive, you can use two attributes \u2014 srcset and sizes \u2014 to provide several additional source images along with hints. This will help the browser pick the right one according to the device&#8217;s resolution. That\u2019s what the responsive code will look like:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"197\" src=\"https:\/\/imagify.io\/blog\/wp-content\/uploads\/2022\/09\/Responsive-image-snippet-Source-Imagify-.png\" alt=\"\" class=\"wp-image-1644\" srcset=\"https:\/\/imagify.io\/blog\/wp-content\/uploads\/2022\/09\/Responsive-image-snippet-Source-Imagify-.png 800w, https:\/\/imagify.io\/blog\/wp-content\/uploads\/2022\/09\/Responsive-image-snippet-Source-Imagify--300x74.png 300w, https:\/\/imagify.io\/blog\/wp-content\/uploads\/2022\/09\/Responsive-image-snippet-Source-Imagify--768x189.png 768w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><figcaption class=\"wp-element-caption\">Responsive image snippet &#8211; Source: <a href=\"https:\/\/imagify.io\/\">Imagify<\/a><br><\/figcaption><\/figure>\n\n\n\n<p>Another example is if you want to tell the browser to serve high-resolution images <strong>only <\/strong>to users with large resolution screens (with a Device Pixel Ratio of 2).&nbsp;<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"500\" src=\"https:\/\/imagify.io\/blog\/wp-content\/uploads\/2022\/09\/SRCSET-attribute-for-responsive-images-Source-Imagify-.png\" alt=\"SRCSET attribute for responsive images - Source: Imagify\n\" class=\"wp-image-1645\" srcset=\"https:\/\/imagify.io\/blog\/wp-content\/uploads\/2022\/09\/SRCSET-attribute-for-responsive-images-Source-Imagify-.png 800w, https:\/\/imagify.io\/blog\/wp-content\/uploads\/2022\/09\/SRCSET-attribute-for-responsive-images-Source-Imagify--300x188.png 300w, https:\/\/imagify.io\/blog\/wp-content\/uploads\/2022\/09\/SRCSET-attribute-for-responsive-images-Source-Imagify--768x480.png 768w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><figcaption class=\"wp-element-caption\">SRCSET attribute for responsive images &#8211; Source: <a href=\"https:\/\/imagify.io\/\">Imagify<\/a><br><\/figcaption><\/figure>\n\n\n\n<p>In plain English, my code snippet gives the following instructions to the browser:&nbsp;<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Display large.jpg to visitors with a DPR of 2.<\/li>\n\n\n\n<li>Display small.jpg to visitors with a DPR of 1.<\/li>\n<\/ul>\n\n\n\n<p>To summarize, this is what happens when the browser fetches both Srcset and Size attributes:&nbsp;<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"500\" src=\"https:\/\/imagify.io\/blog\/wp-content\/uploads\/2022\/09\/Browser-behavior-when-fetching-for-responsive-images-Source-Imagify-.png\" alt=\"Browser behavior when fetching for responsive images - Source: Imagify\n\" class=\"wp-image-1647\" srcset=\"https:\/\/imagify.io\/blog\/wp-content\/uploads\/2022\/09\/Browser-behavior-when-fetching-for-responsive-images-Source-Imagify-.png 800w, https:\/\/imagify.io\/blog\/wp-content\/uploads\/2022\/09\/Browser-behavior-when-fetching-for-responsive-images-Source-Imagify--300x188.png 300w, https:\/\/imagify.io\/blog\/wp-content\/uploads\/2022\/09\/Browser-behavior-when-fetching-for-responsive-images-Source-Imagify--768x480.png 768w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><figcaption class=\"wp-element-caption\">Browser behavior when fetching for responsive images &#8211; Source: <a href=\"https:\/\/imagify.io\/\">Imagify<\/a><br><\/figcaption><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">Making Responsive Images on Bootstrap&nbsp;<\/h3>\n\n\n\n<p>Bootstrap&nbsp;is a free front-end framework allowing easier web development.&nbsp;Images in Bootstrap are made responsive with the<em> img-fluid<\/em> class. This applies <em>max-width:100%<\/em>; and<em> height: auto<\/em>; to the image so that it scales with the parent width.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;img src=\u201dimage.jpg\u201d alt=\u201dDescription\u201d class=\u201dimg-fluid\u201d&gt;<\/code><\/pre>\n\n\n\n<p><strong>Responsive images of different sizes depending on the screen&nbsp;<\/strong><\/p>\n\n\n\n<p>If you would like your image to be 100% width on mobile but 500px maximum on desktop, you should use what is known as Media Queries in your CSS.&nbsp;<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>For devices smaller than 480px (mobile):<\/li>\n<\/ul>\n\n\n\n<p>&nbsp;Implement this code snippet:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>@media only screen and (max-width: 480px) {\n  img {\n    width: 100%;\n  }\n}\n<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li>For devices bigger than 992px (desktop):<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>@media only screen and (min-width: 992px) {\n  img {\n    width: 500px;\n  }\n}\n<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Creating Responsive Images With WordPress<\/h3>\n\n\n\n<p>When you upload images in the WordPress library, it automatically crops new images to smaller sizes. For example, if you upload an image that\u2019s 1500 x 706, the different image sizes will look like this:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Full Size \u2013 1500 x 706<\/li>\n\n\n\n<li>Large \u2013 500 x 235<\/li>\n\n\n\n<li>Medium \u2013 300 x 141<\/li>\n\n\n\n<li>Thumbnail \u2013 150 x 150<\/li>\n<\/ul>\n\n\n\n<p>The good news is that since WordPress 4.4, native responsive images are supported via the \u201csrcset\u201d and \u201csizes\u201d attributes to the image markup it generates.&nbsp;&nbsp;<\/p>\n\n\n\n<p>The other good news with WordPress is that many plugins in the ecosystem can help you optimize images <strong>even more!<\/strong> Making them responsive is a great start for performance, but in the next section, you\u2019ll discover more optimization techniques to implement.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Additional Tips to Optimize Your Images&nbsp;<\/h2>\n\n\n\n<p>Using an image optimizer WordPress plugin can benefit any business looking to get a faster website. The following 4 image optimizations techniques also play a critical role in improving the performance of a website:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><a href=\"#lazy-loading\">Implement Lazy Loading<\/a>&nbsp;<\/li>\n\n\n\n<li><a href=\"#webp\">Convert Your images to the WebP Format<\/a><\/li>\n\n\n\n<li><a href=\"#compress-images\">Smartly Compress Your Images&nbsp;<\/a><\/li>\n\n\n\n<li><a href=\"#cdn\">Use a CDN to Distribute Images Efficiently<\/a><\/li>\n<\/ol>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"lazy-loading\">1. Implement Lazy Loading&nbsp;<\/h3>\n\n\n\n<p>The basic idea of lazy loading is to load images only when users need them (above the fold). In our example, we are showcasing <a href=\"https:\/\/fr.wordpress.org\/plugins\/rocket-lazy-load\/\">LazyLoad by WP Rocket<\/a>, a free plugin that allows you to implement the lazy loading script on your images:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"379\" src=\"https:\/\/imagify.io\/blog\/wp-content\/uploads\/2022\/09\/Lazy-loading-in-one-click-Source-LazyLoad-by-WP-Rockets-dashboard-.png\" alt=\"Lazy-loading in one click - Source: LazyLoad by WP Rocket\u2019s dashboard\n\" class=\"wp-image-1648\" srcset=\"https:\/\/imagify.io\/blog\/wp-content\/uploads\/2022\/09\/Lazy-loading-in-one-click-Source-LazyLoad-by-WP-Rockets-dashboard-.png 800w, https:\/\/imagify.io\/blog\/wp-content\/uploads\/2022\/09\/Lazy-loading-in-one-click-Source-LazyLoad-by-WP-Rockets-dashboard--300x142.png 300w, https:\/\/imagify.io\/blog\/wp-content\/uploads\/2022\/09\/Lazy-loading-in-one-click-Source-LazyLoad-by-WP-Rockets-dashboard--768x364.png 768w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><figcaption class=\"wp-element-caption\">Lazy-loading in one click &#8211; Source: LazyLoad by WP Rocket\u2019s dashboard<br><\/figcaption><\/figure>\n\n\n\n<p>If you want to learn more, here\u2019s a full list of <a href=\"https:\/\/wp-rocket.me\/blog\/best-lazy-load-plugins-wordpress\/\">the best WordPress Lazy Loading plugins<\/a> you can use for your next project.&nbsp;<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"webp\">2. Convert Your Images to WebP&nbsp;<\/h3>\n\n\n\n<p>Google estimates that WebP compression results in between 25% and 34% smaller files than a JPG image (and for the same quality). As a result, converting your images to WebP can save you a large amount of KB. The best way to convert your photos is to use an <a href=\"https:\/\/imagify.io\/features\/\">image optimization WordPress plugin like Imagify<\/a>.<\/p>\n\n\n\n<p>Here\u2019s a straightforward example of Imagify creating WebP versions of images in one click from the WordPress dashboard:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"294\" src=\"https:\/\/imagify.io\/blog\/wp-content\/uploads\/2022\/09\/WebP-conversion-feature-Source-Imagify-.png\" alt=\"WebP conversion feature - Source: Imagify\n\" class=\"wp-image-1649\" srcset=\"https:\/\/imagify.io\/blog\/wp-content\/uploads\/2022\/09\/WebP-conversion-feature-Source-Imagify-.png 800w, https:\/\/imagify.io\/blog\/wp-content\/uploads\/2022\/09\/WebP-conversion-feature-Source-Imagify--300x110.png 300w, https:\/\/imagify.io\/blog\/wp-content\/uploads\/2022\/09\/WebP-conversion-feature-Source-Imagify--768x282.png 768w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><figcaption class=\"wp-element-caption\">WebP conversion feature &#8211; Source: <a href=\"https:\/\/imagify.io\/\">Imagify<\/a><br><\/figcaption><\/figure>\n\n\n\n<p>As you can see from the WordPress library, the WebP is automatically generated:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"526\" src=\"https:\/\/imagify.io\/blog\/wp-content\/uploads\/2022\/09\/Optimizing-images-with-WebP-Source-Imagify-.png\" alt=\"Optimizing images with WebP - Source: Imagify\n\" class=\"wp-image-1650\" srcset=\"https:\/\/imagify.io\/blog\/wp-content\/uploads\/2022\/09\/Optimizing-images-with-WebP-Source-Imagify-.png 800w, https:\/\/imagify.io\/blog\/wp-content\/uploads\/2022\/09\/Optimizing-images-with-WebP-Source-Imagify--300x197.png 300w, https:\/\/imagify.io\/blog\/wp-content\/uploads\/2022\/09\/Optimizing-images-with-WebP-Source-Imagify--768x505.png 768w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><figcaption class=\"wp-element-caption\">Optimizing images with WebP &#8211; Source: <a href=\"https:\/\/imagify.io\/\">Imagify<\/a><br><\/figcaption><\/figure>\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=\"compress-images\">3. Smartly Compress Your Images<\/h3>\n\n\n\n<p>Serving responsive images is great, but try to serve responsive <strong>and<\/strong> compressed images to your visitors! The impact on performance will be outstanding. The only advice is to choose a compression tool that does not make the image too blurry. You still want to serve an image with good quality that will not affect the user experience.&nbsp;<\/p>\n\n\n\n<p>For instance, Imagify <strong>preserves <\/strong>image quality<strong> <\/strong>thanks to the <a href=\"https:\/\/imagify.io\/blog\/imagify-smart-compression\/\">Smart Compression<\/a> feature. No need to worry about which compression level is right for your needs. Imagify does all the heavy lifting.&nbsp;<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"500\" src=\"https:\/\/imagify.io\/blog\/wp-content\/uploads\/2022\/09\/New-Smart-Compression-Process-Source-Imagify-.png\" alt=\"\" class=\"wp-image-1651\" srcset=\"https:\/\/imagify.io\/blog\/wp-content\/uploads\/2022\/09\/New-Smart-Compression-Process-Source-Imagify-.png 800w, https:\/\/imagify.io\/blog\/wp-content\/uploads\/2022\/09\/New-Smart-Compression-Process-Source-Imagify--300x188.png 300w, https:\/\/imagify.io\/blog\/wp-content\/uploads\/2022\/09\/New-Smart-Compression-Process-Source-Imagify--768x480.png 768w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><figcaption class=\"wp-element-caption\">New Smart Compression Process &#8211; Source: <a href=\"https:\/\/imagify.io\">Imagify<\/a><br><\/figcaption><\/figure>\n\n\n\n<p>In a real case scenario, Imagify\u2019s smart compression can save up to 90% of the total image size:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"363\" src=\"https:\/\/imagify.io\/blog\/wp-content\/uploads\/2022\/09\/Imagify-Smart-Level-saving-almost-90-of-KB-Source-Imagify-.png\" alt=\"\" class=\"wp-image-1652\" srcset=\"https:\/\/imagify.io\/blog\/wp-content\/uploads\/2022\/09\/Imagify-Smart-Level-saving-almost-90-of-KB-Source-Imagify-.png 800w, https:\/\/imagify.io\/blog\/wp-content\/uploads\/2022\/09\/Imagify-Smart-Level-saving-almost-90-of-KB-Source-Imagify--300x136.png 300w, https:\/\/imagify.io\/blog\/wp-content\/uploads\/2022\/09\/Imagify-Smart-Level-saving-almost-90-of-KB-Source-Imagify--768x348.png 768w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><figcaption class=\"wp-element-caption\">Imagify \u201cSmart Level\u201d saving almost 90% of KB &#8211; Source: <a href=\"https:\/\/imagify.io\/\">Imagify<\/a><br><\/figcaption><\/figure>\n\n\n\n<p>On top of that, Imagify also presents the following optimization features that will give your website an extra speed boost:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Support many image formats<\/strong> such as PNG, JPG, GIF, PDF, and WebP.<\/li>\n\n\n\n<li><strong>Optimization and resizing <\/strong>are done automatically on upload or existing images you choose.<\/li>\n\n\n\n<li><strong>Automatically resize large images <\/strong>to save bandwidth.<\/li>\n\n\n\n<li><strong>Clean and easy-to-use interface:<\/strong><\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"785\" height=\"1024\" src=\"https:\/\/imagify.io\/blog\/wp-content\/uploads\/2022\/09\/Clean-interface-and-settings-page-Source-Imagifys-WordPress-dashboard--785x1024.png\" alt=\"\" class=\"wp-image-1653\" srcset=\"https:\/\/imagify.io\/blog\/wp-content\/uploads\/2022\/09\/Clean-interface-and-settings-page-Source-Imagifys-WordPress-dashboard--785x1024.png 785w, https:\/\/imagify.io\/blog\/wp-content\/uploads\/2022\/09\/Clean-interface-and-settings-page-Source-Imagifys-WordPress-dashboard--230x300.png 230w, https:\/\/imagify.io\/blog\/wp-content\/uploads\/2022\/09\/Clean-interface-and-settings-page-Source-Imagifys-WordPress-dashboard--768x1001.png 768w, https:\/\/imagify.io\/blog\/wp-content\/uploads\/2022\/09\/Clean-interface-and-settings-page-Source-Imagifys-WordPress-dashboard-.png 800w\" sizes=\"auto, (max-width: 785px) 100vw, 785px\" \/><figcaption class=\"wp-element-caption\">Clean interface and settings page &#8211; Source: Imagify\u2019s WordPress dashboard<br><\/figcaption><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"cdn\">4. Use a CDN to Distribute Images Efficiently<\/h3>\n\n\n\n<p>CDNs decrease image payload and instantly send optimized images from the point of presence (PoPs) to the user worldwide. They can resize and crop original images on the fly to display the most suitable size according to the device.&nbsp;<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"692\" src=\"https:\/\/imagify.io\/blog\/wp-content\/uploads\/2022\/09\/CDN-resizing-and-cropping-the-original-image-to-make-it-lighter-and-better-integrated-into-the-layout-Source-GTmetrix-.png\" alt=\"\" class=\"wp-image-1654\" srcset=\"https:\/\/imagify.io\/blog\/wp-content\/uploads\/2022\/09\/CDN-resizing-and-cropping-the-original-image-to-make-it-lighter-and-better-integrated-into-the-layout-Source-GTmetrix-.png 800w, https:\/\/imagify.io\/blog\/wp-content\/uploads\/2022\/09\/CDN-resizing-and-cropping-the-original-image-to-make-it-lighter-and-better-integrated-into-the-layout-Source-GTmetrix--300x260.png 300w, https:\/\/imagify.io\/blog\/wp-content\/uploads\/2022\/09\/CDN-resizing-and-cropping-the-original-image-to-make-it-lighter-and-better-integrated-into-the-layout-Source-GTmetrix--768x664.png 768w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><figcaption class=\"wp-element-caption\">CDN resizing and cropping the original image to make it lighter and better integrated into the layout &#8211; Source: <a href=\"https:\/\/gtmetrix.com\/\">GTmetrix<\/a><br><\/figcaption><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Wrapping Up&nbsp;<\/h2>\n\n\n\n<p>Choosing the right image size according to the screen resolution can be crucial in improving a website&#8217;s performance. Serving responsive images enhances the user experience across all devices, which is what Google is expecting from a website! You\u2019ll be rewarded with a better ranking and good Core Web Vitals.&nbsp;<\/p>\n\n\n\n<p>In addition to responsive images, remember to use other image optimizer plugins like <a href=\"https:\/\/imagify.io\/features\/\">Imagify<\/a> or <a href=\"https:\/\/fr.wordpress.org\/plugins\/rocket-lazy-load\/\">LazyLoad by WP Rocket<\/a> to optimize your media. <a href=\"https:\/\/imagify.io\/optimizer\/#page\">Why don\u2019t you give Imagify a try<\/a>? It\u2019s free for up to 20 MB of images a month, and the only risk you take is to optimize further your responsive images.&nbsp;<\/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 why and how you should make responsive images? You&#8217;ll get all the answers in our article.<\/p>\n","protected":false},"author":8,"featured_media":1664,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[],"class_list":["post-1636","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\/1636","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=1636"}],"version-history":[{"count":11,"href":"https:\/\/imagify.io\/blog\/wp-json\/wp\/v2\/posts\/1636\/revisions"}],"predecessor-version":[{"id":2392,"href":"https:\/\/imagify.io\/blog\/wp-json\/wp\/v2\/posts\/1636\/revisions\/2392"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/imagify.io\/blog\/wp-json\/wp\/v2\/media\/1664"}],"wp:attachment":[{"href":"https:\/\/imagify.io\/blog\/wp-json\/wp\/v2\/media?parent=1636"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/imagify.io\/blog\/wp-json\/wp\/v2\/categories?post=1636"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/imagify.io\/blog\/wp-json\/wp\/v2\/tags?post=1636"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}