{"id":368,"date":"2021-05-14T20:50:31","date_gmt":"2021-05-14T20:50:31","guid":{"rendered":"https:\/\/imagify.io\/documentation\/?p=368"},"modified":"2021-06-25T15:27:57","modified_gmt":"2021-06-25T15:27:57","slug":"deregister-thumbnail-sizes-lower-resize-larger-images-setting","status":"publish","type":"post","link":"https:\/\/imagify.io\/documentation\/deregister-thumbnail-sizes-lower-resize-larger-images-setting\/","title":{"rendered":"How to Deregister Thumbnail Sizes and Lower the &#8220;Resize Larger Images&#8221; Setting"},"content":{"rendered":"<p>\nWhen you upload an image to your Media Library, thumbnail versions of that image are created and stored on your server for all thumbnail sizes registered by your theme (and other possible sources). Occasionally, you may wish to deregister some of these thumbnail sizes for various reasons including:\n<\/p>\n<p><b>To Remove Unneeded or Unused Thumbnail Sizes<\/b><\/p>\n<p>\nThere may be thumbnails registered for your site that you don&#8217;t need or use, and you may wish to deregister them so they won&#8217;t unnecessarily take up space on your server.\n<\/p>\n<p><b>To Lower Imagify&#8217;s &#8220;Resize Larger Images&#8221; Setting<\/b><\/p>\n<p>\nThis setting cannot be lower than the width of your largest thumbnail. If you&#8217;d like your images to be resized to a lower value, then you&#8217;ll need to deregister all thumbnails with widths larger than that.\n<\/p>\n<h3>How To Deregister Unwanted Thumbnail Sizes<\/h3>\n<p>\nYou can use Imagify&#8217;s <a href=\"https:\/\/github.com\/wp-media\/imagify-helpers\/raw\/master\/various\/imagify-remove-thumbnail-sizes\/imagify-remove-thumbnail-sizes.zip\" rel=\"noopener\" target=\"_blank\">Remove Thumbnail Sizes<\/a> plugin to assist you with this. This helper plugin removes WordPress&#8217; default thumbnail sizes of &#8220;1536&#215;1536&#8221; and &#8220;2048&#215;2048&#8221; but it&#8217;s likely that you&#8217;ll need to customize the plugin to remove your specific unwanted thumbnails.\n<\/p>\n<h3>Instructions to Customize the Remove Thumbnail Sizes Plugin<\/h3>\n<p>\nStart by going to your Imagify plugin settings page and view the files optimization section as pictured below:\n<\/p>\n<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/imagify.io\/documentation\/wp-content\/uploads\/2021\/05\/remove-thumbs-1-sizes.png\" alt=\"\" width=\"498\" height=\"358\" class=\"alignnone size-full wp-image-377\" srcset=\"https:\/\/imagify.io\/documentation\/wp-content\/uploads\/2021\/05\/remove-thumbs-1-sizes.png 498w, https:\/\/imagify.io\/documentation\/wp-content\/uploads\/2021\/05\/remove-thumbs-1-sizes-300x216.png 300w\" sizes=\"auto, (max-width: 498px) 100vw, 498px\" \/>\n<p>\nTake note of the names of all the thumbnails that need to be deregistered. The widths are highlighted in orange and the thumbnail names are highlighted in yellow. Do not include the dimensions on the right side as part of the thumbnail names.\n<\/p>\n<p><b><br \/>\nSteps to take once you have the names of all the thumbnails that need to be removed:<br \/>\n<\/b><\/p>\n<div class=\"steps-panel\">\n<ol class=\"steps-panel__steps\">\n<li>\n<p>\nDownload the <a href=\"https:\/\/github.com\/wp-media\/imagify-helpers\/raw\/master\/various\/imagify-remove-thumbnail-sizes\/imagify-remove-thumbnail-sizes.zip\" rel=\"noopener\" target=\"_blank\">Remove Thumbnail Sizes<\/a> plugin, unzip it, and open the PHP file in a text editor. Here you can view the part of the code that edits should be limited to:\n<\/p>\n<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/imagify.io\/documentation\/wp-content\/uploads\/2021\/05\/remove-thumbs-2-default-code.png\" alt=\"\" width=\"556\" height=\"233\" class=\"alignnone size-full wp-image-380\" srcset=\"https:\/\/imagify.io\/documentation\/wp-content\/uploads\/2021\/05\/remove-thumbs-2-default-code.png 556w, https:\/\/imagify.io\/documentation\/wp-content\/uploads\/2021\/05\/remove-thumbs-2-default-code-300x126.png 300w\" sizes=\"auto, (max-width: 556px) 100vw, 556px\" \/>\n<p>\nFor each of the thumbnails to be deregistered, you will need to add a new line. Each new line of code should be identical to the line above it, except that you will update the thumbnail name in the highlighted area, and the last value you add should not end with a comma.\n<\/p>\n<p>\nSo for example, if you were trying to also deregister the &#8220;post-thumbnail&#8221; and &#8220;twentytwenty-fullscreen&#8221; thumbnails (from the first image above), your code would be as follows:\n<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/imagify.io\/documentation\/wp-content\/uploads\/2021\/05\/remove-thumbs-3-customized-code.png\" alt=\"\" width=\"564\" height=\"285\" class=\"alignnone size-full wp-image-382\" srcset=\"https:\/\/imagify.io\/documentation\/wp-content\/uploads\/2021\/05\/remove-thumbs-3-customized-code.png 564w, https:\/\/imagify.io\/documentation\/wp-content\/uploads\/2021\/05\/remove-thumbs-3-customized-code-300x152.png 300w\" sizes=\"auto, (max-width: 564px) 100vw, 564px\" \/>\n<\/li>\n<li>\nOnce this is complete, save the PHP file and zip it back up into a .zip file.\n<\/li>\n<li>\nInstall and activate this updated helper plugin through your WordPress Admin plugins page.\n<\/li>\n<li>\nCheck to make sure the target thumbnail sizes have been removed from the Files Optimization section in your Imagify plugin settings page, and if so, you should be allowed to lower the &#8220;Resize larger images&#8221; setting to your desired value.\n<\/li>\n<\/ol>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>When you upload an image to your Media Library, thumbnail versions of that image are created and stored on your server for all thumbnail sizes registered by your theme (and other possible sources). Occasionally, you may wish to deregister some of these thumbnail sizes for various reasons including: To Remove Unneeded or Unused Thumbnail Sizes [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[10,11],"class_list":["post-368","post","type-post","status-publish","format-standard","hentry","category-wordpress-plugin","tag-thumbnails","tag-wp-plugin"],"_links":{"self":[{"href":"https:\/\/imagify.io\/documentation\/wp-json\/wp\/v2\/posts\/368","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/imagify.io\/documentation\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/imagify.io\/documentation\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/imagify.io\/documentation\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/imagify.io\/documentation\/wp-json\/wp\/v2\/comments?post=368"}],"version-history":[{"count":21,"href":"https:\/\/imagify.io\/documentation\/wp-json\/wp\/v2\/posts\/368\/revisions"}],"predecessor-version":[{"id":633,"href":"https:\/\/imagify.io\/documentation\/wp-json\/wp\/v2\/posts\/368\/revisions\/633"}],"wp:attachment":[{"href":"https:\/\/imagify.io\/documentation\/wp-json\/wp\/v2\/media?parent=368"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/imagify.io\/documentation\/wp-json\/wp\/v2\/categories?post=368"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/imagify.io\/documentation\/wp-json\/wp\/v2\/tags?post=368"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}