{"id":201143,"date":"2021-09-24T04:34:27","date_gmt":"2021-09-24T04:34:27","guid":{"rendered":"https:\/\/wpmudev.com\/blog\/?p=201143"},"modified":"2023-12-18T22:31:45","modified_gmt":"2023-12-18T22:31:45","slug":"smush-compress-remove-original-images","status":"publish","type":"post","link":"https:\/\/wpmudev.com\/blog\/smush-compress-remove-original-images\/","title":{"rendered":"How to Compress and Remove Original Images with Smush"},"content":{"rendered":"<p>Want greater control of your uploaded images? <a href=\"https:\/\/wordpress.org\/plugins\/wp-smushit\/\" rel=\"noopener\" target=\"_blank\">Smush<\/a> lets you compress and back up uploaded images, scale images to a desired threshold, disable scaling altogether, and more.<\/p>\n<p>With Smush, you can now override WordPress Core functionality in the plugin&#8217;s settings to <strong>compress and remove original images<\/strong>.<\/p>\n<p>We have tweaked the bulk smush engine and added several options that lets you choose how to manage this.<\/p>\n<p>Before getting into the nitty-gritty, let&#8217;s explain what \u201coriginals\u201d are (yeah, it can be confusing even for us).<\/p>\n<h2>Originals and Scaling<\/h2>\n<p>When WP version 5.3 was introduced in October 2019, <a href=\"https:\/\/make.wordpress.org\/core\/2019\/10\/09\/introducing-handling-of-big-images-in-wordpress-5-3\/\" rel=\"noopener\" target=\"_blank\">WordPress decided to change how they handled big images<\/a>.<\/p>\n<p>Basically, WordPress defined a threshold (2560px is the default) and all images that were bigger than that would be scaled down, leaving users with all the usual generated attachments, plus the scaled version, plus the actual big image that you uploaded.<\/p>\n<p>To quote the WordPress team:<\/p>\n<blockquote><p>If an image height or width is above this threshold, it will be scaled down, with the threshold being used as max-height and max-width value. The scaled-down image will be used as the largest available size.<\/p><\/blockquote>\n<p><em>Note: <\/em>The scaling only works with JPEG images as the WP Core Team <a href=\"https:\/\/core.trac.wordpress.org\/ticket\/48736\" rel=\"noopener\" target=\"_blank\">removed this functionality from PNG files<\/a> due to a number of issues.<\/p>\n<h2>Use Cases<\/h2>\n<p>There are various reasons why you would want to compress your uploaded images or even go one step further and disable the default WordPress scaling functionality altogether.<\/p>\n<p>For example, you may have users that don\u2019t know that uploading 20MB images directly from their camera is not a good practice when it comes to <a href=\"https:\/\/wpmudev.com\/blog\/compress-resize-images-wordpress\/\" target=\"_blank\" rel=\"noopener\">using images with WordPress<\/a>.<\/p>\n<p>Or, images may be taking up a lot of space on your server and for various reasons, you can\u2019t do anything but try to compress these.<\/p>\n<p>The point is&#8230;you have your reasons and Smush allows you to choose how to handle images to better suit your workflow. :)<\/p>\n<h2>How Does it Work?<\/h2>\n<p>Whether you have <a href=\"https:\/\/wordpress.org\/plugins\/wp-smushit\/\" rel=\"noopener\" target=\"_blank\">Smush free<\/a> or <a href=\"https:\/\/wpmudev.com\/project\/wp-smush-pro\/\" target=\"_blank\" rel=\"noopener\">Smush Pro<\/a> installed, go to Bulk Smush &gt; Settings and scroll down a little.<\/p>\n<p>You will find several new options:<\/p>\n<figure id=\"attachment_201147\" class=\"wp-caption aligncenter\" data-caption=\"true\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-201147\" src=\"https:\/\/wpmudev.com\/blog\/wp-content\/uploads\/2021\/09\/bulk-smush-settings.png\" alt=\"Bulk Smush Settings\" width=\"600\" height=\"633\" \/><figcaption class=\"wp-caption-text\">Manage your uploaded images better with Smush&#8217;s image resizing and uploading image features.<\/figcaption><\/figure>\n<p><strong>Resize uploaded images<\/strong> lets you change the default max image width and height threshold defined by WordPress (2560px) to other dimensions.<\/p>\n<p><strong>Disable scaled images<\/strong> allows you to completely disable the scaling functionality, which means that WordPress won\u2019t create scaled versions of your uploaded images if they\u2019re larger than the threshold. Basically, this lets you go back to how WordPress managed large-sized images before v5.3.<\/p>\n<p>Enabling\u00a0<strong>Compress uploaded images<\/strong> allows you to smush those huge images that we talked about earlier. No more 20MB+ images taking up space in your server (unless you really want it to!).<\/p>\n<p>Smush also gives you the option to <strong>back up your uploaded images<\/strong>.<\/p>\n<p>If you want to\u00a0<strong>compress your scaled images<\/strong>, you\u2019ll see the threshold size you defined (for example, 2048\u00d72048) as another item under Bulk Smush &gt; Image Sizes &gt; Custom.<\/p>\n<div class=\"image-grid cgrid-row\">\n<div class=\"cgrid-col cgrid-col-span-full\">\n<figure id=\"attachment_201148\" class=\"wp-caption aligncenter\" data-caption=\"true\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-201148 size-full\" src=\"https:\/\/wpmudev.com\/blog\/wp-content\/uploads\/2021\/09\/image-sizes-custom.png\" alt=\"Bulk Smush Settings - Image Sizes\" width=\"600\" height=\"537\" \/><figcaption class=\"wp-caption-text\">Compress your scaled images, including your defined image threshold size.<\/figcaption><\/figure>\n<\/div>\n<\/div>\n<p>Under Tools &gt; Bulk restore, you can <strong>restore your thumbnails<\/strong> as long as you enabled the option to back up your uploaded images.<\/p>\n<figure id=\"attachment_201149\" class=\"wp-caption aligncenter\" data-caption=\"true\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-201149\" src=\"https:\/\/wpmudev.com\/blog\/wp-content\/uploads\/2021\/09\/smush-bulk-restore.png\" alt=\"Smush Bulk Restore\" width=\"600\" height=\"141\" \/><figcaption class=\"wp-caption-text\">Regenerate your image thumbnails from your original uploaded images.<\/figcaption><\/figure>\n<p>Give this feature a spin and start managing your uploaded images better in WordPress. If you need additional information, check out our <a href=\"https:\/\/wpmudev.com\/docs\/wpmu-dev-plugins\/smush\/#bulk-smush-settings\" target=\"_blank\" rel=\"noopener\">Smush plugin documentation<\/a> or contact our support team.<\/p>\n<p><em>[Editor&#8217;s note: This post was originally published in Sept 2021 and updated in Dec 2023 for accuracy.]<\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Want greater control of your uploaded images? Smush lets you compress and back up uploaded images, scale images to a desired threshold, disable scaling altogether, and more. With Smush, you can now override WordPress Core functionality in the plugin&#8217;s settings to compress and remove original images. We have tweaked the bulk smush engine and added [&hellip;]<\/p>\n","protected":false},"author":774618,"featured_media":220354,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"blog_reading_time":"3","wds_primary_category":0,"wds_primary_tutorials_categories":0,"footnotes":""},"categories":[263,11260,11259],"tags":[],"tutorials_categories":[11228],"class_list":["post-201143","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tutorials","category-wpmu-dev-products","category-wpmudev-tutorials","tutorials_categories-smush-pro"],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/posts\/201143","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/users\/774618"}],"replies":[{"embeddable":true,"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/comments?post=201143"}],"version-history":[{"count":12,"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/posts\/201143\/revisions"}],"predecessor-version":[{"id":220153,"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/posts\/201143\/revisions\/220153"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/media\/220354"}],"wp:attachment":[{"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/media?parent=201143"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/categories?post=201143"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/tags?post=201143"},{"taxonomy":"tutorials_categories","embeddable":true,"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/tutorials_categories?post=201143"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}