{"id":10514,"date":"2024-04-10T17:57:44","date_gmt":"2024-04-10T15:57:44","guid":{"rendered":"https:\/\/shortpixel.com/blog\/?p=10514"},"modified":"2024-10-02T19:39:23","modified_gmt":"2024-10-02T17:39:23","slug":"why-not-compress-images-before-uploading-them-to-wordpress","status":"publish","type":"post","link":"https:\/\/shortpixel.com\/blog\/why-not-compress-images-before-uploading-them-to-wordpress\/","title":{"rendered":"Why Compressing Images Before Uploading Them To WordPress Isn&#8217;t Such a Good Idea"},"content":{"rendered":"\n<p>There&#8217;s a common belief that compressing images before uploading them to WordPress is the way to go.<\/p>\n\n\n\n<p>But in reality, this can cause issues, especially with the thumbnails WordPress creates.<\/p>\n\n\n\n<p>In this post, we\u2019ll dive into why you might want to think twice before compressing your images ahead of time.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">What are WordPress thumbnails?<\/h2>\n\n\n\n<p>WordPress thumbnails, also called <a href=\"https:\/\/shortpixel.com\/blog\/complete-guide-to-wordpress-image-sizes\/\" data-type=\"link\" data-id=\"https:\/\/shortpixel.com\/blog\/complete-guide-to-wordpress-image-sizes\/\">image sizes<\/a>, are just different versions of an image that WordPress automatically generates to fit various spots on your site.<\/p>\n\n\n\n<p>When you upload an image to the media library, WordPress creates several resized versions based on preset dimensions.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/shortpixel.com/blog\/wp-content\/uploads\/2024\/04\/wordpress-media-settings.png\"><img decoding=\"async\" width=\"1091\" height=\"703\" src=\"https:\/\/shortpixel.com/blog\/wp-content\/uploads\/2024\/04\/wordpress-media-settings.png\" alt=\"\" class=\"wp-image-10515\" title=\"\" srcset=\"https:\/\/shortpixel.com\/blog\/wp-content\/uploads\/2024\/04\/wordpress-media-settings.png 1091w, https:\/\/shortpixel.com\/blog\/wp-content\/uploads\/2024\/04\/wordpress-media-settings-300x193.png 300w, https:\/\/shortpixel.com\/blog\/wp-content\/uploads\/2024\/04\/wordpress-media-settings-1024x660.png 1024w, https:\/\/shortpixel.com\/blog\/wp-content\/uploads\/2024\/04\/wordpress-media-settings-768x495.png 768w\" sizes=\"(max-width: 1091px) 100vw, 1091px\" \/><\/a><figcaption class=\"wp-element-caption\">WordPress Media Settings (Settings &gt; Media)<\/figcaption><\/figure>\n\n\n\n<p>On top of the default sizes, themes and plugins can also add their own custom image sizes. For example, a theme might set specific sizes for featured images or header backgrounds.<\/p>\n\n\n\n<p>WordPress makes it easy to manage these sizes in the media settings (Settings &gt; Media). You can choose the default dimensions for thumbnails, medium, and large images, and even toggle cropping for thumbnails.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">The downside of pre-compression<\/h2>\n\n\n\n<p>When you upload a pre-compressed image, WordPress uses it as the source for generating these thumbnails. <\/p>\n\n\n\n<p>While this can help somewhat with thumbnail sizes, it will require extra time and effort from the editor, resulting in thumbnails that are only 22% smaller. <\/p>\n\n\n\n<p>Using a plugin like <a href=\"https:\/\/shortpixel.com\/products\/shortpixel-image-optimizer\" data-type=\"link\" data-id=\"https:\/\/shortpixel.com\/products\/shortpixel-image-optimizer\" target=\"_blank\" rel=\"noreferrer noopener\">ShortPixel Image Optimizer<\/a> saves time by automating the process, and the resulting thumbnails are <strong>76% smaller<\/strong>.<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td class=\"has-text-align-center\" data-align=\"center\"><img decoding=\"async\" class=\"wp-image-10609\" style=\"width: 300px;\" src=\"https:\/\/shortpixel.com/blog\/wp-content\/uploads\/2024\/04\/original.png\" alt=\"\" title=\"\"><br>Original<\/td><td class=\"has-text-align-center\" data-align=\"center\"><img decoding=\"async\" class=\"wp-image-10612\" style=\"width: 300px;\" src=\"https:\/\/shortpixel.com/blog\/wp-content\/uploads\/2024\/04\/optimized-locally.png\" alt=\"\" title=\"\"><br>Optimized locally(22.28% lighter)<\/td><td class=\"has-text-align-center\" data-align=\"center\"><img decoding=\"async\" class=\"wp-image-10608\" style=\"width: 300px;\" src=\"https:\/\/shortpixel.com/blog\/wp-content\/uploads\/2024\/04\/optimized-ShortPixel.png\" alt=\"\" title=\"\"><br><strong>Optimized by ShortPixel(76.39% lighter)<\/strong><\/td><\/tr><tr><td class=\"has-text-align-center\" data-align=\"center\"><img decoding=\"async\" width=\"300\" height=\"76\" class=\"wp-image-10615\" style=\"width: 300px;\" src=\"https:\/\/shortpixel.com/blog\/wp-content\/uploads\/2024\/04\/original-thumbnails.png\" alt=\"\" title=\"\" srcset=\"https:\/\/shortpixel.com\/blog\/wp-content\/uploads\/2024\/04\/original-thumbnails.png 382w, https:\/\/shortpixel.com\/blog\/wp-content\/uploads\/2024\/04\/original-thumbnails-300x76.png 300w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><br>Original thumbnails<\/td><td class=\"has-text-align-center\" data-align=\"center\"><img decoding=\"async\" width=\"300\" height=\"82\" class=\"wp-image-10614\" style=\"width: 300px;\" src=\"https:\/\/shortpixel.com/blog\/wp-content\/uploads\/2024\/04\/optimize-locally-thumbnails.png\" alt=\"\" title=\"\" srcset=\"https:\/\/shortpixel.com\/blog\/wp-content\/uploads\/2024\/04\/optimize-locally-thumbnails.png 355w, https:\/\/shortpixel.com\/blog\/wp-content\/uploads\/2024\/04\/optimize-locally-thumbnails-300x82.png 300w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><br>Locally optimized thumbnails<\/td><td class=\"has-text-align-center\" data-align=\"center\"><img decoding=\"async\" width=\"300\" height=\"84\" class=\"wp-image-10613\" style=\"width: 300px;\" src=\"https:\/\/shortpixel.com/blog\/wp-content\/uploads\/2024\/04\/optimized-shortpixel-thumbnails.png\" alt=\"\" title=\"\" srcset=\"https:\/\/shortpixel.com\/blog\/wp-content\/uploads\/2024\/04\/optimized-shortpixel-thumbnails.png 351w, https:\/\/shortpixel.com\/blog\/wp-content\/uploads\/2024\/04\/optimized-shortpixel-thumbnails-300x84.png 300w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><br>Thumbnails optimized by ShortPixel<\/td><\/tr><tr><td class=\"has-text-align-center\" data-align=\"center\"><a href=\"https:\/\/shortpixel.com/blog\/wp-content\/uploads\/2024\/04\/original.png\" download=\"\">Download example<\/a><\/td><td class=\"has-text-align-center\" data-align=\"center\"><a href=\"https:\/\/shortpixel.com/blog\/wp-content\/uploads\/2024\/04\/optimized-locally.png\" download=\"\">Download example<\/a><\/td><td class=\"has-text-align-center\" data-align=\"center\"><a href=\"https:\/\/shortpixel.com/blog\/wp-content\/uploads\/2024\/04\/optimized-ShortPixel.png\" download=\"\">Download example<\/a><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>As shown in the table above, there are three different image sets: the original image, the original image in a compressed format (<em>optimized locally<\/em>), and the original image optimized using ShortPixel Image Optimizer (<em>optimized by ShortPixel<\/em>).<\/p>\n\n\n\n<div class=\"wp-block-group has-border-color has-luminous-vivid-amber-border-color has-background is-nowrap is-layout-flex wp-container-core-group-is-layout-e60c28ba wp-block-group-is-layout-flex\" style=\"border-style:solid;border-width:1px;border-radius:20px;background-color:#fffaea;padding-top:var(--wp--preset--spacing--60);padding-right:var(--wp--preset--spacing--60);padding-bottom:var(--wp--preset--spacing--60);padding-left:var(--wp--preset--spacing--60)\">\n<div class=\"wp-block-group is-layout-constrained wp-block-group-is-layout-constrained\">\n<div class=\"wp-block-outermost-icon-block\"><div class=\"icon-container has-icon-color has-luminous-vivid-amber-color\" style=\"color:#fcb900;width:30px\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"-2 -2 24 24\" aria-hidden=\"true\"><path d=\"M10 2c4.42 0 8 3.58 8 8s-3.58 8-8 8-8-3.58-8-8 3.58-8 8-8zm1.13 9.38l.35-6.46H8.52l.35 6.46h2.26zm-.09 3.36c.24-.23.37-.55.37-.96 0-.42-.12-.74-.36-.97s-.59-.35-1.06-.35-.82.12-1.07.35-.37.55-.37.97c0 .41.13.73.38.96.26.23.61.34 1.06.34s.8-.11 1.05-.34z\"><\/path><\/svg><\/div><\/div>\n<\/div>\n\n\n\n<p><strong>Good to know:<\/strong> The file sizes of the locally uncompressed thumbnails are <strong>significantly smaller<\/strong>, thanks to individual processing and optimization of each thumbnail using <a href=\"https:\/\/shortpixel.com\/blog\/introducing-smartcompress\/\" data-type=\"link\" data-id=\"https:\/\/shortpixel.com\/blog\/introducing-smartcompress\/\">SmartCompress<\/a> algorithms.<\/p>\n<\/div>\n\n\n\n<p><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Solution? Compress images after upload<\/h2>\n\n\n\n<p>It&#8217;s that simple! It\u2019s better to upload uncompressed images to WordPress and have them compressed afterward.<\/p>\n\n\n\n<p>This way, you preserve the original quality and give WordPress high-quality source material to create thumbnails from.<\/p>\n\n\n\n<p>The payoff? Uncompressed images lead to better-quality thumbnails, while still keeping file sizes small.<\/p>\n\n\n\n<p>Plus, by uploading uncompressed images, you maintain control over the entire optimization process.<\/p>\n\n\n\n<p>Finally, you can use a plugin like <a href=\"https:\/\/wordpress.org\/plugins\/shortpixel-image-optimiser\/\" data-type=\"link\" data-id=\"https:\/\/wordpress.org\/plugins\/shortpixel-image-optimiser\/\" target=\"_blank\" rel=\"noopener\">ShortPixel Image Optimizer<\/a> to fine-tune compression settings and get the ideal balance between image quality and file size.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Conclusion<\/h2>\n\n\n\n<p>While it may seem counterintuitive, not compressing images before uploading them to WordPress is the superior approach.<\/p>\n\n\n\n<p>By preserving the original quality, allowing WordPress to generate thumbnails from uncompressed images, and compressing the images afterward using a plugin, you ensure optimal visual presentation and efficient website performance.<\/p>\n\n\n\n<div class=\"wp-block-group has-border-color has-palette-color-4-border-color has-palette-color-6-background-color has-background is-vertical is-content-justification-left is-layout-flex wp-container-core-group-is-layout-e21fc307 wp-block-group-is-layout-flex\" style=\"border-width:1px;border-radius:20px;margin-top:var(--wp--preset--spacing--60);margin-bottom:var(--wp--preset--spacing--60);padding-top:var(--wp--preset--spacing--60);padding-right:var(--wp--preset--spacing--60);padding-bottom:var(--wp--preset--spacing--60);padding-left:var(--wp--preset--spacing--60)\">\n<h3 class=\"wp-block-heading\" id=\"cta-heading\" style=\"margin-top:0;margin-right:0;margin-bottom:0;margin-left:0;padding-top:0;padding-right:0;padding-bottom:0;padding-left:0\">Go unlimited with ShortPixel!<\/h3>\n\n\n\n<p>Optimize images effortlessly, with no restrictions or limitations.<\/p>\n\n\n\n<div class=\"wp-block-buttons is-layout-flex wp-block-buttons-is-layout-flex\">\n<div class=\"wp-block-button\"><a class=\"wp-block-button__link wp-element-button\" href=\"https:\/\/shortpixel.com\/pricing\">Get Started<\/a><\/div>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>There&#8217;s a common belief that compressing images before uploading them to WordPress is the way to go. But in reality, this can cause issues, especially with the thumbnails WordPress creates. In this post, we\u2019ll dive into why you might want to think twice before compressing your images ahead of time. What are WordPress thumbnails? WordPress [&hellip;]<\/p>\n","protected":false},"author":22,"featured_media":10527,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-10514","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-world-of-wordpress"],"blocksy_meta":[],"_links":{"self":[{"href":"https:\/\/shortpixel.com\/blog\/wp-json\/wp\/v2\/posts\/10514","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/shortpixel.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/shortpixel.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/shortpixel.com\/blog\/wp-json\/wp\/v2\/users\/22"}],"replies":[{"embeddable":true,"href":"https:\/\/shortpixel.com\/blog\/wp-json\/wp\/v2\/comments?post=10514"}],"version-history":[{"count":31,"href":"https:\/\/shortpixel.com\/blog\/wp-json\/wp\/v2\/posts\/10514\/revisions"}],"predecessor-version":[{"id":11225,"href":"https:\/\/shortpixel.com\/blog\/wp-json\/wp\/v2\/posts\/10514\/revisions\/11225"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/shortpixel.com\/blog\/wp-json\/wp\/v2\/media\/10527"}],"wp:attachment":[{"href":"https:\/\/shortpixel.com\/blog\/wp-json\/wp\/v2\/media?parent=10514"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/shortpixel.com\/blog\/wp-json\/wp\/v2\/categories?post=10514"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/shortpixel.com\/blog\/wp-json\/wp\/v2\/tags?post=10514"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}