[wp-trac] [WordPress Trac] #12110: Media Settings Option

WordPress Trac wp-trac at lists.automattic.com
Mon Feb 1 17:15:49 UTC 2010


#12110: Media Settings Option
-----------------------------+----------------------------------------------
 Reporter:  unsalkorkmaz     |        Owner:         
     Type:  feature request  |       Status:  closed 
 Priority:  normal           |    Milestone:  3.1    
Component:  Media            |      Version:  2.9.1  
 Severity:  normal           |   Resolution:  wontfix
 Keywords:                   |  
-----------------------------+----------------------------------------------
Changes (by scribu):

  * status:  reopened => closed
  * resolution:  => wontfix


Comment:

 unsalkorkmaz, it seems you're trying to do the same things I'm doing on a
 photo-sharing site of mine.

 I've been able to do what you want using a plugin. I might release it at
 some point.

 To prevent WP from generating unneeded image sizes, just paste this code
 in your theme's functions.php:

 {{{
 function prune_image_sizes($sizes) {
         unset($sizes['medium']);
         unset($sizes['full']);

         return $sizes;
 }
 add_filter('intermediate_image_sizes', 'prune_image_sizes');
 }}}

 However, this will not delete the original image.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/12110#comment:9>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list