{"id":78983,"date":"2012-06-04T10:21:11","date_gmt":"2012-06-04T14:21:11","guid":{"rendered":"http:\/\/wpmu.org\/?p=78983"},"modified":"2012-06-04T10:20:08","modified_gmt":"2012-06-04T14:20:08","slug":"reduce-number-of-images-on-your-server-with-this-wordpress-plugin","status":"publish","type":"post","link":"https:\/\/wpmudev.com\/blog\/reduce-number-of-images-on-your-server-with-this-wordpress-plugin\/","title":{"rendered":"Reduce Number of Images on Your Server with this WordPress Plugin"},"content":{"rendered":"<p><a rel=\"lightbox[78983]\" class=\"blog-thumbnail\" href=\"https:\/\/wpmudev.com\/blog\/reduce-number-of-images-on-your-server-with-this-wordpress-plugin\/images-big-3\/\" rel=\"attachment wp-att-79058\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-79058\" title=\"images-big\" src=\"https:\/\/wpmudev.com\/blog\/wp-content\/uploads\/2012\/06\/images-big.jpg\" alt=\"Post image\" aria-hidden=\"true\" width=\"646\" height=\"433\" \/><\/a><br \/>\nWhen you upload an image to WordPress, you aren\u2019t just storing that one image on your server. <strong>In WordPress, a number of different images of various sizes get created automatically.<\/strong> And so instead of one image, <strong>you may be storing as many as five images for every one you upload<\/strong>.<\/p>\n<p>This is done to give you a number of different image size options. And while that\u2019s a nice idea, the truth is you probably won\u2019t use most of those images. And so they just sit there on your server, taking up space.<\/p>\n<p>The <a href=\"http:\/\/wordpress.org\/extend\/plugins\/dynamic-image-resizer\/\" target=\"_blank\">Dynamic Image Resizer plugin<\/a> can help with that problem. Instead of generating all those images from the beginning, it creates them only if and when needed.<br \/>\n<\/p>\n<p>&nbsp;<\/p>\n<h2><strong>The Plugin in Action<\/strong><\/h2>\n<p>There are no settings to configure with this plugin. Just activate it, and it\u2019s ready to go.<\/p>\n<p>And so in order to see behind the scenes, we\u2019ll take a look at a few uploaded images on the server\u2013 first with the plugin activated, and then without the plugin activated.<\/p>\n<p>First I activated the plugin and then uploaded an image. I then checked my server and found that only two images had been created \u2013 an original-sized image and what appears to be a thumbnail-sized image (150 x 150).<\/p>\n<p>I\u2019m not sure why it created the thumbnail image as I didn\u2019t think my theme was using any thumbnails, but perhaps it was, and I wasn\u2019t aware of it. In any case, two images wasn\u2019t bad.<\/p>\n<p><a rel=\"lightbox[78983]\" class=\"blog-thumbnail\" href=\"https:\/\/wpmudev.com\/blog\/reduce-number-of-images-on-your-server-with-this-wordpress-plugin\/first-image\/\" rel=\"attachment wp-att-78989\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-78989 aligncenter\" title=\"first-image\" src=\"https:\/\/wpmudev.com\/blog\/wp-content\/uploads\/2012\/05\/first-image.jpg\" alt=\"Post image\" aria-hidden=\"true\" width=\"653\" height=\"198\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>Next, I deactivated the plugin, made a copy of the image (titled \u201ctest-image-Copy\u201d), and then uploaded it in the normal WordPress environment. It created five different images from that one upload.<\/p>\n<p><a rel=\"lightbox[78983]\" class=\"blog-thumbnail\" href=\"https:\/\/wpmudev.com\/blog\/reduce-number-of-images-on-your-server-with-this-wordpress-plugin\/second-image\/\" rel=\"attachment wp-att-78990\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-78990\" title=\"second-image\" src=\"https:\/\/wpmudev.com\/blog\/wp-content\/uploads\/2012\/05\/second-image.jpg\" alt=\"Post image\" aria-hidden=\"true\" width=\"654\" height=\"382\" \/><\/a><br \/>\n<\/p>\n<h2><strong>What the Plugin Won\u2019t Do<\/strong><\/h2>\n<p>A few notes on what the plugin won\u2019t do.<\/p>\n<ol>\n<li>It doesn\u2019t work with Multisite.<\/li>\n<li>It doesn\u2019t clean up already uploaded images. It only works on images that are uploaded after the plugin is activated.<\/li>\n<li>If you change themes, it doesn\u2019t automatically adjust the images to fit new sizes for the new theme. However, as the plugin developer says, \u201cIf new sizes are defined by the new theme, and those filenames get generated and requested by that theme, the plugin will generate the new sizes as they are retrieved. So while it can&#8217;t correct all cases, it can correct some of them.\u201d<\/li>\n<\/ol>\n<p>In any case, this plugin can help you take a literal load off your server \u2013 especially if you use a lot of images.<br \/>\n<\/p>\n<p>Photo:\u00a0<a href=\"http:\/\/www.bigstockphoto.com\/image-9827540\/stock-photo-beautiful-sceneries-in-photos-on-green-field-background\" rel=\"noopener\" target=\"_blank\">Beautiful Sceneries in Photos on Green Field Background<\/a> from BigStock<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This plugin generates images on the fly when you need them.<\/p>\n","protected":false},"author":84404,"featured_media":79059,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"blog_reading_time":"","wds_primary_category":0,"wds_primary_tutorials_categories":0,"footnotes":""},"categories":[4],"tags":[16],"tutorials_categories":[],"class_list":["post-78983","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-plugins","tag-images"],"_links":{"self":[{"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/posts\/78983","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\/84404"}],"replies":[{"embeddable":true,"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/comments?post=78983"}],"version-history":[{"count":1,"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/posts\/78983\/revisions"}],"predecessor-version":[{"id":216229,"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/posts\/78983\/revisions\/216229"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/media\/79059"}],"wp:attachment":[{"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/media?parent=78983"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/categories?post=78983"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/tags?post=78983"},{"taxonomy":"tutorials_categories","embeddable":true,"href":"https:\/\/wpmudev.com\/blog\/wp-json\/wp\/v2\/tutorials_categories?post=78983"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}