{"id":28619,"date":"2017-07-31T12:56:40","date_gmt":"2017-07-31T17:56:40","guid":{"rendered":"https:\/\/wpengine.com\/?post_type=resource&#038;p=28619"},"modified":"2025-05-08T15:28:28","modified_gmt":"2025-05-08T20:28:28","slug":"how-to-optimize-images-wordpress","status":"publish","type":"resource","link":"https:\/\/wpengine.com\/case-studies\/resources\/how-to-optimize-images-wordpress\/","title":{"rendered":"How To Optimize Your Images For WordPress"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">There are many reasons why you would (and should) include images in your WordPress content. Images help keep your readers engaged. They\u2019re also a way to break up long pieces of content and improve Search Engine Optimization (SEO). However, they can also slow your website down.&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Fortunately, there are quite a few resources available that can help you optimize your images. This means you\u2019ll be more likely to overcome <a href=\"https:\/\/velocitize.com\/2017\/03\/27\/how-site-speed-impacts-your-seo-and-ux\/\">slow page speeds<\/a> that can be detrimental to the overall success of your website.&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">In this article, we\u2019ll look at why large images might be dragging your site down. Then we\u2019ll explore how to effectively compress your media files, along with some fundamental image optimization tips that can improve your site\u2019s SEO.<\/p>\n\n\n\n\n\n<h2 class=\"wp-block-heading\">Why You Should Be Optimizing Your Images for WordPress<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Images are a valuable and important piece of any content strategy. However, they can also be one of the main causes of slow page loading times.&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">A slow website is a problem, because it can drive users away. In fact, pages that take five seconds or more to load see on average a <a href=\"https:\/\/wpengine.com\/resources\/improve-wordpress-site-speed\/\" target=\"_blank\" rel=\"noreferrer noopener\">90 percent increase<\/a> in the probability of a user bouncing (leaving after only viewing a single page).<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">While there are multiple factors that can slow down your site, images and media files take up a hefty <a href=\"https:\/\/speckyboy.com\/optimize-images-websites-improve-performance-ux\/\">63 percent<\/a> of bandwidth on modern websites. Consequently, it\u2019s important to optimize the images you upload to your site.&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">It\u2019s also worth noting that site speed is a <a href=\"https:\/\/developers.google.com\/web\/updates\/2018\/07\/search-ads-speed\">Google ranking factor<\/a>. This means that how fast or slow your page loads will dictate, to some extent, how well it ranks in search results. There are many factors that <a href=\"https:\/\/www.link-assistant.com\/news\/google-page-rank-2019.html\">influence your PageRank<\/a>, and images fall under the \u201cUsability of web pages\u201d category.&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Image optimization is really about improving two things:&nbsp;<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>The number of bytes used to encode each image pixel<\/li>\n\n\n\n<li>The total number of pixels used.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">In other words, optimizing means you are getting the best quality you can out of the least pixels and bytes. This reduces your media file sizes, and can have a significant impact on your site\u2019s speed overall.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Optimize Images for WordPress Before Uploading to Your Site<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Ultimately, the best case scenario for your website is that you <a href=\"https:\/\/wpengine.com\/resources\/wordpress-plugins-site-optimization\/\">optimize your images<\/a> before you upload them. This is so you don\u2019t end up with duplicates or multiple versions of one image. That would defeat the purpose of lightening your website\u2019s load through image optimization.&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">With that in mind, let\u2019s look at some of the considerations you\u2019ll need to make when deciding how to optimize your site\u2019s media.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Image File Formats<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">To get started, let\u2019s take a look at the various kinds of image formats that exist. Understanding how each of them is different and when it\u2019s best to use them can help you build towards a more streamlined use of images.&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The two <a href=\"https:\/\/99designs.com\/blog\/tips\/image-file-types\/\">most common image formats<\/a> used online are JPEGs and PNGs. Both of these formats are made up of pixels. Pixels stretch when you change the size of an image, which can sometimes make it blurry. However, these image types have different strengths and weaknesses.&nbsp;<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">When to Use JPEGs<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">JPEG files are a good choice for both print and web content. This kind of image file uses what\u2019s <a href=\"https:\/\/wpengine.com\/resources\/how-to-optimize-images-wordpress\/\">called a \u2018lossy\u2019 format<\/a>. When a larger image is converted to a JPEG, some of the information contained in its file is lost.&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">That information isn\u2019t needed for simply displaying the image. However, what it does mean is that converting to a JPEG results in a smaller file size, but there can be some sacrifice in overall image quality. Fortunately, the reduction in quality isn\u2019t too noticeable, especially for smaller images.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">When to Use PNGs<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">PNG files are also useful for web content, just like JPEGs, but in a different way. Since PNGs can have transparent backgrounds, for example, they are more versatile and handy for designing web graphics.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">PNGs use a \u2018lossless\u2019 file format. This means that all the information about the image is retained when the file is compressed. As a result, they tend to be of higher quality, but offer a smaller improvement in file sizes and page speeds. They\u2019re a good option for graphics and icons, and for very high-quality images.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Image Size<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">It\u2019s time to cut the bloat. Delivering <em>scaled<\/em> images is one of the simplest and most effective ways to optimize your images. Why so effective? Image scaling will ensure that you\u2019re not shipping any more pixels than needed to display the asset at its intended size in the browser.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Many sites try to deliver large, unscaled images and rely on the browser to resize them, which results in the use of extra resources and slower site speed. If the image\u2019s natural size is 820\u00d7820 pixels, and it is displayed by the browser as 400\u00d7400 pixels\u2026that\u2019s 32,400 unnecessary pixels!<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The clarity and speed at which a page loads has a lot to do with the device on which the image is displayed (mobile, desktop, etc). For example, a 4k image may look nice on your 27 inch monitor.&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">However, when a visitor loads a page with that image, the browser will render the file at its full resolution first, and then scale it down to fit on their screen. If they are using a mobile device not capable of anything larger than 400 pixels, they\u2019ll likely miss out on your content.&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">With that in mind, some best practices when exporting your images include:&nbsp;<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Keep your image\u2019s file sizes under a couple hundred kilobytes, by saving them as \u2018web optimized\u2019 JPEGs or PNGs.&nbsp;<\/li>\n\n\n\n<li>The web standard for images is 72 dots per inch (dpi), which can be achieved by saving images in the format prescribed above.&nbsp;<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">You can use <a href=\"https:\/\/www.adobe.com\/products\/photoshop.html\">Photoshop<\/a>, <a href=\"https:\/\/www.adobe.com\/products\/photoshop-lightroom.html\">Lightroom<\/a>, or a similar editor to reduce the image size to around 1,500 pixels or less in width. In Photoshop, simply go to <em>Image &gt; Image Size<\/em> to manually adjust the dimensions and resolution of your image. You can also go to <em>File &gt; Export &gt; Save for Web<\/em> to optimize your images for web upload :&nbsp;<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter wp-image-28631 size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"504\" src=\"https:\/\/wpengine.com\/wp-content\/uploads\/2017\/07\/wordpress-image-optimization-2-1024x504.png\" alt=\"Optimizing Images for WordPress Using Photoshop\" class=\"wp-image-28631\" srcset=\"https:\/\/wpengine.com\/case-studies\/wp-content\/uploads\/2017\/07\/wordpress-image-optimization-2-1024x504.png 1024w, https:\/\/wpengine.com\/case-studies\/wp-content\/uploads\/2017\/07\/wordpress-image-optimization-2-300x148.png 300w, https:\/\/wpengine.com\/case-studies\/wp-content\/uploads\/2017\/07\/wordpress-image-optimization-2-768x378.png 768w, https:\/\/wpengine.com\/case-studies\/wp-content\/uploads\/2017\/07\/wordpress-image-optimization-2-293x144.png 293w, https:\/\/wpengine.com\/case-studies\/wp-content\/uploads\/2017\/07\/wordpress-image-optimization-2-1017x500.png 1017w, https:\/\/wpengine.com\/case-studies\/wp-content\/uploads\/2017\/07\/wordpress-image-optimization-2.png 1334w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">If you\u2019re not aiming to display sharp and vivid photos on a larger monitor, you can size the image down even further.&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If working with Lightroom, go to <em>File &gt; Export<\/em> to manually adjust the image size upon exporting it:<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter wp-image-28632 size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"378\" src=\"https:\/\/wpengine.com\/wp-content\/uploads\/2017\/07\/lightroom-image-optimizaiton-1024x378.png\" alt=\"Optimizing Images for WordPress using Lightroom\" class=\"wp-image-28632\" srcset=\"https:\/\/wpengine.com\/case-studies\/wp-content\/uploads\/2017\/07\/lightroom-image-optimizaiton-1024x378.png 1024w, https:\/\/wpengine.com\/case-studies\/wp-content\/uploads\/2017\/07\/lightroom-image-optimizaiton-300x111.png 300w, https:\/\/wpengine.com\/case-studies\/wp-content\/uploads\/2017\/07\/lightroom-image-optimizaiton-768x284.png 768w, https:\/\/wpengine.com\/case-studies\/wp-content\/uploads\/2017\/07\/lightroom-image-optimizaiton-303x112.png 303w, https:\/\/wpengine.com\/case-studies\/wp-content\/uploads\/2017\/07\/lightroom-image-optimizaiton.png 1234w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Image size and resolution are just one part of the puzzle. When it comes to optimizing your images, you\u2019ll also want to understand compression and use it effectively.&nbsp;<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Image Compression<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">In a nutshell, <a href=\"https:\/\/www.techopedia.com\/definition\/15890\/image-compression\">image compression<\/a> is a way of minimizing the size (in bytes) of a graphic file, without degrading the quality of the image to an unacceptable level. As we\u2019ve discussed, high-resolution images that are unnecessarily large in file size can dramatically affect page speed.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">On the other hand, <a href=\"https:\/\/wpengine.com\/resources\/how-to-optimize-images-wordpress\/\" target=\"_blank\" rel=\"noreferrer noopener\">optimized images are 40 percent lighter<\/a> than unoptimized images on average. As a general rule, you\u2019ll want to optimize all images and other media that you upload to your website, either before or during the upload process.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Lossy vs Lossless Compression<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">As we mentioned earlier, JPEGs and PNGs use two different types of image compression. Lossless compression preserves all of the data from the original file, without sacrificing quality.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">With lossless compression, you are typically breaking a file into a \u2018smaller\u2019 form for transmission or storage. Then the information is put back together on the other end, so it can be used again.&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">On the other hand, lossy compression removes some of the data contained in the image file. This can result in a larger drop in quality, but also a more significant improvement in page speeds. You can even customize the amount of compression, in order to achieve a balance between quality and performance.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Image Compression Plugins<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">Fast loaded images mean a speedier site and better SEO. Here are some various image optimization plugins to help you with image compression.<\/p>\n\n\n\n<h5 class=\"wp-block-heading\"><strong><a href=\"https:\/\/wordpress.org\/plugins\/wp-smushit\/\" target=\"_blank\" rel=\"noreferrer noopener\">Smush Image Compression and Optimization<\/a><\/strong><\/h5>\n\n\n\n<figure class=\"wp-block-image aligncenter\"><a href=\"https:\/\/wordpress.org\/plugins\/wp-smushit\/\" target=\"_blank\" rel=\"noopener noreferrer\"><img loading=\"lazy\" decoding=\"async\" width=\"747\" height=\"240\" src=\"https:\/\/wpengine.com\/wp-content\/uploads\/2017\/07\/Smush-Image-Compression-and-Optimization.png\" alt=\"WordPress Image Optimization with Smush Plugin\" class=\"wp-image-28653\" srcset=\"https:\/\/wpengine.com\/case-studies\/wp-content\/uploads\/2017\/07\/Smush-Image-Compression-and-Optimization.png 747w, https:\/\/wpengine.com\/case-studies\/wp-content\/uploads\/2017\/07\/Smush-Image-Compression-and-Optimization-300x96.png 300w, https:\/\/wpengine.com\/case-studies\/wp-content\/uploads\/2017\/07\/Smush-Image-Compression-and-Optimization-303x97.png 303w\" sizes=\"auto, (max-width: 747px) 100vw, 747px\" \/><\/a><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/wordpress.org\/plugins\/wp-smushit\/\" target=\"_blank\" rel=\"noreferrer noopener\">Smush\u2019s image compression plugin<\/a> works to resize, optimize, and compress all of your images for the web, so they load faster than before. If your site is photo-rich, then this plugin is a must-have.<\/p>\n\n\n\n<h5 class=\"wp-block-heading\"><a href=\"https:\/\/wordpress.org\/plugins\/shortpixel-image-optimiser\/\" target=\"_blank\" rel=\"noreferrer noopener\">ShortPixel Image Optimizer<\/a><\/h5>\n\n\n\n<figure class=\"wp-block-image aligncenter\"><a href=\"https:\/\/wordpress.org\/plugins\/shortpixel-image-optimiser\/\" target=\"_blank\" rel=\"noopener noreferrer\"><img loading=\"lazy\" decoding=\"async\" width=\"748\" height=\"238\" src=\"https:\/\/wpengine.com\/wp-content\/uploads\/2017\/07\/shortpixel-image-optimizer.png\" alt=\"WordPress Image Optimization with ShortPixel\" class=\"wp-image-28654\" srcset=\"https:\/\/wpengine.com\/case-studies\/wp-content\/uploads\/2017\/07\/shortpixel-image-optimizer.png 748w, https:\/\/wpengine.com\/case-studies\/wp-content\/uploads\/2017\/07\/shortpixel-image-optimizer-300x95.png 300w, https:\/\/wpengine.com\/case-studies\/wp-content\/uploads\/2017\/07\/shortpixel-image-optimizer-303x96.png 303w\" sizes=\"auto, (max-width: 748px) 100vw, 748px\" \/><\/a><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/wordpress.org\/plugins\/shortpixel-image-optimiser\/\" target=\"_blank\" rel=\"noreferrer noopener\">ShortPixel\u2019s Image Optimizer<\/a> plugin compresses all past and future images and PDFs uploaded to your media library. The plugin provides both lossy and lossless compression for most file types. If you\u2019re a photographer, you might opt for the glossy JPEG compression, which uses a high-quality lossy optimization algorithm.<\/p>\n\n\n\n<h5 class=\"wp-block-heading\"><a href=\"https:\/\/wordpress.org\/plugins\/tiny-compress-images\/\" target=\"_blank\" rel=\"noreferrer noopener\">Compress JPEG &amp; PNG images<\/a><\/h5>\n\n\n\n<figure class=\"wp-block-image aligncenter\"><a href=\"https:\/\/wordpress.org\/plugins\/tiny-compress-images\/\" target=\"_blank\" rel=\"noopener noreferrer\"><img loading=\"lazy\" decoding=\"async\" width=\"747\" height=\"235\" src=\"https:\/\/wpengine.com\/wp-content\/uploads\/2017\/07\/Compress-JPEG-PNG-images.png\" alt=\"Enhance WordPress Performance by Optimizing Images\" class=\"wp-image-28656\" srcset=\"https:\/\/wpengine.com\/case-studies\/wp-content\/uploads\/2017\/07\/Compress-JPEG-PNG-images.png 747w, https:\/\/wpengine.com\/case-studies\/wp-content\/uploads\/2017\/07\/Compress-JPEG-PNG-images-300x94.png 300w, https:\/\/wpengine.com\/case-studies\/wp-content\/uploads\/2017\/07\/Compress-JPEG-PNG-images-303x95.png 303w\" sizes=\"auto, (max-width: 747px) 100vw, 747px\" \/><\/a><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Looking to just optimize JPEGs and PNGs? <a rel=\"noreferrer noopener\" href=\"https:\/\/wordpress.org\/plugins\/tiny-compress-images\/\" target=\"_blank\">This plugin<\/a> uses image compression services TinyJPG and TinyPNG to help you with image compression. On average, JPEG images are compressed by 40-60 percent, and PNG images by 50-80 percent, without a visible loss in quality.<\/p>\n\n\n\n<h5 class=\"wp-block-heading\"><a href=\"https:\/\/wordpress.org\/plugins\/ewww-image-optimizer\/\">EWWW Image Optimizer<\/a><\/h5>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/wordpress.org\/plugins\/ewww-image-optimizer\/\">EWWW Image Optimizer<\/a> does double-duty. It both optimizes existing images on your site, and takes care of new ones you upload as well. In addition, it provides you with a lot of control over how (and how much) your images are compressed.<\/p>\n\n\n\n<h5 class=\"wp-block-heading\"><a href=\"https:\/\/wordpress.org\/plugins\/kraken-image-optimizer\/\">Kraken.io Image Optimizer<\/a><\/h5>\n\n\n\n<p class=\"wp-block-paragraph\">Last but not least, <a href=\"https:\/\/wordpress.org\/plugins\/kraken-image-optimizer\/\">Kraken.io Image Optimizer<\/a> is also handy for optimizing both new and existing media. It supports lossless and \u2018intelligent\u2019 lossy compression, making it easier to achieve high-quality images with lower file sizes.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Featured Image<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">The <a href=\"https:\/\/torquemag.io\/2019\/06\/wordpress-featured-image\/\">featured image<\/a> isn\u2019t inserted into the body of a WordPress post, but is used structurally throughout your theme. It may appear as a thumbnail next to the post\u2019s title, for example, or in the header when viewing a particular post.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Most themes and widgets rely on featured images, so it\u2019s not something you\u2019ll want to skip out on. Featured images allow for greater customization; you will have the ability to display unique custom header images for specific posts and pages, or set thumbnails for special features of your theme.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Once you\u2019ve decided on the size you want your featured image to be, that size will remain set for all future featured images. The size you should select depends on the theme of your WordPress site and the layout of your posts.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Featured images are usually wider than then are high, ranging anywhere from 500 to 900 pixels wide. It\u2019s also best to choose a high-resolution image and not one that\u2019s pixelated.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Pro-tip:<\/strong> To control the media that\u2019s displayed whenever a post or page is shared to Facebook or Twitter, install the <a href=\"https:\/\/yoast.com\/wordpress\/plugins\/seo\/\">Yoast SEO<\/a> plugin. You\u2019ll not only be able to customize the title and description, but also upload the correct image sizes for each social channel.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Optimize Images for WordPress After Uploading to Your Site<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">We do recommend optimizing your images prior to uploading them. However, if that\u2019s not possible, or you want to optimize the images that are already on your site, you can still do that. There are a few methods that can help you optimize your live content.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Lazy Load Images<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Normally when someone visits a web page, all of its content begins to load. This means that, for a content-heavy page, it can take a while for everything to show up.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u2018Lazy loading\u2019 involves tweaking the way your site loads content. It instructs your site to focus on first loading the text, images, and other elements that are immediately visible. Only after that will it start to load content that\u2019s only accessible by scrolling down the page. This is a great way to speed up your site and improve your visitors\u2019 experience.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The easiest way to add lazy loading to your site is through a plugin such as <a href=\"https:\/\/wordpress.org\/plugins\/rocket-lazy-load\/\">Lazy Load<\/a>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This is a tool from WP Rocket that helps to reduce the volume of requests sent to your site\u2019s web server at one time. It even substitutes placeholder images for YouTube videos, so that the actual video will only load as needed.&nbsp;<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Cache Images<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Another way to improve speed on your site is via \u2018caching\u2019. This involves saving some of your site\u2019s data in a place that\u2019s easier and quicker for a visitor to access,- often either on a third-party server closer to where they\u2019re located, or in their browser.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">There are a lot of ways to accomplish caching through coding, plugins, and other tools. Here at WP Engine, we <a href=\"https:\/\/wpengine.com\/support\/cache\/\">implement robust caching<\/a> on all of our sites by default. This is beneficial for reducing the impact all of your content has on page speeds, not just your images.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Remove EXIF Data<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/exifdata.com\/\">EXIF data<\/a> is stored as part of an image file, and contains information about where and how a picture was taken. It\u2019s automatically added to images by cameras, and isn\u2019t generally necessary for your web files.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Therefore, removing this data from your images can speed up your pages, although the impact isn\u2019t likely to be huge. There are currently no updated plugins that can help you do this, unfortunately. So if you use a lot of photographs on your site and are concerned about EXIF data, you\u2019ll want to reach out to a developer for help.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Avoid Image URL Redirects<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Finally, another element that can slow down your pages is when your images are causing redirects. This most commonly happens when they\u2019re linking somewhere else.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">For that reason, you should avoid embedding images from external sources on your site. Instead, save and upload each image or peice of media directly to your site if possible. You may also want to ensure that your images don\u2019t link out to anything, such as a separate media page.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Optimizing Images for Search Engines<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Formatting image titles is another important step in image optimization. This means the image file name is relevant to its content. When you do this, it\u2019s more likely that they\u2019ll show up in related image search results via search engines.&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This will increase the visibility and accessibility of your brand, as well as traffic to your site by having your site\u2019s images listed more frequently in Google Image searches. Image optimization takes very little time and can make a huge difference in your site\u2019s traffic.&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Here are a few additional tips to help your images rank higher.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Alt Text<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/wpengine.com\/resources\/wordpress-image-alt-text\/\">Alternative text<\/a>, otherwise known as \u2018alt text\u2019 or an \u2018alt tag\u2019, is an attribute added to an image in HTML. Alt text helps search engines understand what your image is about, by describing what it includes and what its purpose is.&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/support.google.com\/webmasters\/answer\/114016?hl=en\">Google relies<\/a> on alt text to determine what an image is since all it \u2018sees\u2019 is what\u2019s in the HTML tag. When you use strong, descriptive alternative text for your images, you\u2019re more likely to see your site listed appropriately in search results.&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">In WordPress, you can add alt text to your images two ways. First, you can add it to images that have been placed in posts, by clicking on the image and using the <em>Image Settings<\/em> option on the right side of the screen.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Alternatively, you can also add alt text to an image by visiting <em>Media &gt; Library<\/em> and choosing the image you want. Then, simply add your alt text to the <em>Alternative Text<\/em> field for that image.&nbsp;<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Title Tags<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Title tags are similar to alt tags, but they are for human readers, not search engine bots.&nbsp; Good title tag optimization can help visually-impaired users access your website.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Create XML Image Sitemaps<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Another way to get your images noticed by Google is to <a href=\"https:\/\/support.google.com\/webmasters\/answer\/178636?hl=en\">create a sitemap and submit it<\/a>. This is a good option for images that can\u2019t be crawled by search engines.&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">We\u2019re talking about images loaded by JavaScript, for example. Sitemaps give search engines more information about the images available on your site, so they can understand and index your content more accurately.&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">In WordPress, the following plugins can help you create a sitemap:&nbsp;<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/wordpress.org\/plugins\/google-sitemap-generator\/\">Google XML Sitemaps<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/wordpress.org\/plugins\/wordpress-seo\/\">Yoast SEO<\/a>&nbsp;<\/li>\n\n\n\n<li><a href=\"https:\/\/wordpress.org\/plugins\/all-in-one-seo-pack\/\">All-in-One SEO Pack<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/wordpress.org\/plugins\/udinra-all-image-sitemap\/\">Udinra All Image Sitemap<\/a><\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">For non-WordPress websites, there are also tools that can assist in creating a sitemap, including <a href=\"https:\/\/www.screamingfrog.co.uk\/seo-spider\/\">Screaming Frog<\/a>, <a href=\"https:\/\/dynomapper.com\/\">Dynomapper<\/a>, and more. Once you\u2019ve created a sitemap, you\u2019ll then want to submit it through <a href=\"https:\/\/www.google.com\/webmasters\/#?modal_active=none\">Google\u2019s webmaster tools<\/a>.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Image Placement and Captions<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Last but not least, let\u2019s look at the placement of visuals within a blog post or web page. Where you put your images within a post can have a significant impact on how it ranks on Google.&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">For example, if you place an image closer to your <a href=\"https:\/\/www.wordstream.com\/keyword-phrases\">keyword phrases<\/a>, it is likely to rank better. Also, note that adding a keyword-rich caption to your image counts as search text, and can help with better image SEO.&nbsp;<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Optimize Your Images and Your WordPress Site with WP Engine<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Image optimization covers a lot of ground when it comes to improving your website. Optimizing can help elevate user experiences, and keep your loading times under that five-second mark.\u00a0Here at WP Engine, we understand the value that image optimization brings to your website. That\u2019s why we offer specialized <a href=\"https:\/\/wpengine.com\/wordpress-hosting\/\">managed hosting for WordPress<\/a> environments. This means you\u2019ll have expert support and comprehensive optimization tools and resources at your fingertips!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>There are many reasons why you would (and should) include images in your WordPress content. Images help keep your readers engaged. They\u2019re also a way to break up long pieces of content and improve Search Engine Optimization (SEO). However, they can also slow your website down.&nbsp; Fortunately, there are quite a few resources available that<span class=\"tile__ellipses\">&hellip;<\/span><span class=\"tile__ellipses--animated\"><\/span><\/p>\n","protected":false},"author":1,"featured_media":147081,"template":"","resource-topic":[904,910,901],"resource-role":[903,899],"resource-type":[916],"class_list":["post-28619","resource","type-resource","status-publish","has-post-thumbnail","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.9 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to Optimize Your Images for WordPress | WP Engine\u00ae<\/title>\n<meta name=\"description\" content=\"Learn how to optimize your images for WordPress using our guide. We&#039;ll show you how to improve image size, quality, speed and search engine optimization.\" \/>\n<meta name=\"robots\" content=\"noindex, follow\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Optimize Your Images for WordPress | WP Engine\u00ae\" \/>\n<meta property=\"og:description\" content=\"Learn how to optimize your images for WordPress using our guide. We&#039;ll show you how to improve image size, quality, speed and search engine optimization.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/wpengine.com\/case-studies\/resources\/how-to-optimize-images-wordpress\/\" \/>\n<meta property=\"og:site_name\" content=\"WP Engine\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/wpengine\" \/>\n<meta property=\"article:modified_time\" content=\"2025-05-08T20:28:28+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/wpengine.com\/case-studies\/wp-content\/uploads\/2017\/07\/how-to-optimize-images_1200x627.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"627\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:image\" content=\"https:\/\/wpengine.com\/case-studies\/wp-content\/uploads\/2017\/07\/how-to-optimize-images_1200x627.png\" \/>\n<meta name=\"twitter:site\" content=\"@wpengine\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"14 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/wpengine.com\/case-studies\/resources\/how-to-optimize-images-wordpress\/\",\"url\":\"https:\/\/wpengine.com\/case-studies\/resources\/how-to-optimize-images-wordpress\/\",\"name\":\"How to Optimize Your Images for WordPress | WP Engine\u00ae\",\"isPartOf\":{\"@id\":\"https:\/\/wpengine.com\/case-studies\/#website\"},\"datePublished\":\"2017-07-31T17:56:40+00:00\",\"dateModified\":\"2025-05-08T20:28:28+00:00\",\"description\":\"Learn how to optimize your images for WordPress using our guide. We'll show you how to improve image size, quality, speed and search engine optimization.\",\"breadcrumb\":{\"@id\":\"https:\/\/wpengine.com\/case-studies\/resources\/how-to-optimize-images-wordpress\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/wpengine.com\/case-studies\/resources\/how-to-optimize-images-wordpress\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/wpengine.com\/case-studies\/resources\/how-to-optimize-images-wordpress\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/wpengine.com\/case-studies\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Resources\",\"item\":\"https:\/\/wpengine.com\/case-studies\/resources\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"How To Optimize Your Images For WordPress\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/wpengine.com\/case-studies\/#website\",\"url\":\"https:\/\/wpengine.com\/case-studies\/\",\"name\":\"WP Engine\",\"description\":\"Managed Hosting for WordPress\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/wpengine.com\/case-studies\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/wpengine.com\/case-studies\/#\/schema\/person\/f5301455463371a10d1fc290e9ad0085\",\"name\":\"WP Engine\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/wpengine.com\/case-studies\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/d8770fe9625ca7c4601f13d9d0ab86565a6dac8cd6a77bfe2ada6d83c6837870?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/d8770fe9625ca7c4601f13d9d0ab86565a6dac8cd6a77bfe2ada6d83c6837870?s=96&d=mm&r=g\",\"caption\":\"WP Engine\"},\"sameAs\":[\"https:\/\/wpengine.com\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Optimize Your Images for WordPress | WP Engine\u00ae","description":"Learn how to optimize your images for WordPress using our guide. We'll show you how to improve image size, quality, speed and search engine optimization.","robots":{"index":"noindex","follow":"follow"},"og_locale":"en_US","og_type":"article","og_title":"How to Optimize Your Images for WordPress | WP Engine\u00ae","og_description":"Learn how to optimize your images for WordPress using our guide. We'll show you how to improve image size, quality, speed and search engine optimization.","og_url":"https:\/\/wpengine.com\/case-studies\/resources\/how-to-optimize-images-wordpress\/","og_site_name":"WP Engine","article_publisher":"https:\/\/www.facebook.com\/wpengine","article_modified_time":"2025-05-08T20:28:28+00:00","og_image":[{"width":1200,"height":627,"url":"https:\/\/wpengine.com\/case-studies\/wp-content\/uploads\/2017\/07\/how-to-optimize-images_1200x627.png","type":"image\/png"}],"twitter_card":"summary_large_image","twitter_image":"https:\/\/wpengine.com\/case-studies\/wp-content\/uploads\/2017\/07\/how-to-optimize-images_1200x627.png","twitter_site":"@wpengine","twitter_misc":{"Est. reading time":"14 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/wpengine.com\/case-studies\/resources\/how-to-optimize-images-wordpress\/","url":"https:\/\/wpengine.com\/case-studies\/resources\/how-to-optimize-images-wordpress\/","name":"How to Optimize Your Images for WordPress | WP Engine\u00ae","isPartOf":{"@id":"https:\/\/wpengine.com\/case-studies\/#website"},"datePublished":"2017-07-31T17:56:40+00:00","dateModified":"2025-05-08T20:28:28+00:00","description":"Learn how to optimize your images for WordPress using our guide. We'll show you how to improve image size, quality, speed and search engine optimization.","breadcrumb":{"@id":"https:\/\/wpengine.com\/case-studies\/resources\/how-to-optimize-images-wordpress\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/wpengine.com\/case-studies\/resources\/how-to-optimize-images-wordpress\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/wpengine.com\/case-studies\/resources\/how-to-optimize-images-wordpress\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/wpengine.com\/case-studies\/"},{"@type":"ListItem","position":2,"name":"Resources","item":"https:\/\/wpengine.com\/case-studies\/resources\/"},{"@type":"ListItem","position":3,"name":"How To Optimize Your Images For WordPress"}]},{"@type":"WebSite","@id":"https:\/\/wpengine.com\/case-studies\/#website","url":"https:\/\/wpengine.com\/case-studies\/","name":"WP Engine","description":"Managed Hosting for WordPress","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/wpengine.com\/case-studies\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/wpengine.com\/case-studies\/#\/schema\/person\/f5301455463371a10d1fc290e9ad0085","name":"WP Engine","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/wpengine.com\/case-studies\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/d8770fe9625ca7c4601f13d9d0ab86565a6dac8cd6a77bfe2ada6d83c6837870?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/d8770fe9625ca7c4601f13d9d0ab86565a6dac8cd6a77bfe2ada6d83c6837870?s=96&d=mm&r=g","caption":"WP Engine"},"sameAs":["https:\/\/wpengine.com"]}]}},"acf":[],"grid_image_url":"https:\/\/wpengine.com\/case-studies\/wp-content\/uploads\/2017\/07\/how-to-optimize-images_343x245.png","media-type":{"term_id":916,"name":"Article","slug":"article"},"role":"<strong>Roles:<\/strong> Marketer, Site Owner","topic":"<strong>Topics:<\/strong> Marketing, SEO, WordPress","_links":{"self":[{"href":"https:\/\/wpengine.com\/case-studies\/wp-json\/wp\/v2\/resource\/28619","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wpengine.com\/case-studies\/wp-json\/wp\/v2\/resource"}],"about":[{"href":"https:\/\/wpengine.com\/case-studies\/wp-json\/wp\/v2\/types\/resource"}],"author":[{"embeddable":true,"href":"https:\/\/wpengine.com\/case-studies\/wp-json\/wp\/v2\/users\/1"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/wpengine.com\/case-studies\/wp-json\/wp\/v2\/media\/147081"}],"wp:attachment":[{"href":"https:\/\/wpengine.com\/case-studies\/wp-json\/wp\/v2\/media?parent=28619"}],"wp:term":[{"taxonomy":"resource-topic","embeddable":true,"href":"https:\/\/wpengine.com\/case-studies\/wp-json\/wp\/v2\/resource-topic?post=28619"},{"taxonomy":"resource-role","embeddable":true,"href":"https:\/\/wpengine.com\/case-studies\/wp-json\/wp\/v2\/resource-role?post=28619"},{"taxonomy":"resource-type","embeddable":true,"href":"https:\/\/wpengine.com\/case-studies\/wp-json\/wp\/v2\/resource-type?post=28619"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}