{"id":1960397,"date":"2011-03-07T12:01:15","date_gmt":"2011-03-07T12:01:15","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/custom-post-image-sizes-future\/"},"modified":"2016-08-19T23:00:54","modified_gmt":"2016-08-19T23:00:54","slug":"custom-post-image-sizes-future","status":"closed","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/custom-post-image-sizes-future\/","title":{"rendered":"Custom Post Image Sizes Future"},"content":{"rendered":"<p>I&#8217;ve tried to get help from main &#8220;how to topic&#8221;, but no one seems to now the solution. Maybe more expirienced programmers can help?<\/p>\n<p>The problem is wordpress creating to many images if adding new image size with function &#8220;add_image_size&#8221;. <\/p>\n<p>F.e. if I add 5 new image sizes wordpress will create 8 same images (5 new + 3 standart) for all uploaded images. But what if I just nedd 1 or 2 new images for my custom type post? <\/p>\n<p>I don&#8217;t want to have huge number of unnecessary files and occupy too much space on my hosting.<\/p>\n<p>I just need for examle, for post type &#8220;products&#8221; it creates one set of image sizes, for post type &#8220;gallery&#8221; another set of img sizes.<\/p>\n<p>I&#8217;m struggling almost 2 days with this problem.<\/p>\n<p>If you now the solution, pls post it here. <\/p>\n<p>I&#8217;m sure it will be very usefull for all wordpress users!<\/p>\n","protected":false},"template":"","class_list":["post-1960397","topic","type-topic","status-closed","hentry","topic-tag-add_image_size"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/1960397","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/1960397\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=1960397"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}