[wp-trac] [WordPress Trac] #15311: dynamic image resize (on the fly) using already available functions

WordPress Trac wp-trac at lists.automattic.com
Tue Nov 9 02:29:28 UTC 2010


#15311: dynamic image resize (on the fly) using already available functions
-------------------------+--------------------------------------------------
 Reporter:  vteixeira    |       Owner:                
     Type:  enhancement  |      Status:  new           
 Priority:  normal       |   Milestone:  Future Release
Component:  Media        |     Version:  3.1           
 Severity:  normal       |    Keywords:  dev-feedback  
-------------------------+--------------------------------------------------
Changes (by nacin):

  * milestone:  Awaiting Review => Future Release


Comment:

 Replying to [comment:20 vteixeira]:
 > I also thought there were already a ticket for this, that's why I
 searched before posting.
 >
 > The ticket #8599 doesn't solve our problems since we would still need to
 register image sizes and all the images would be resized on all that
 sizes...
 >
 > I first made this function because I was working on a website where I
 had more than 12 different 'add_image_size()' on my functions.php file.
 > Well, with the 3 other sizes that WordPress creates automatically, you
 can make the math...
 > For each image uploaded I had 15 different files plus the original - 16
 files for one image!

 We still need a whitelist, so we wouldn't deviate from add_image_size().
 Otherwise you could just ++ the desired size, and force the server to
 continue to eat up resources in resizing photos. It's practically a DOS
 and would be death on a shared host.

 But what we could do, is generate those respective sizes on demand, when
 requested. This also allows for new ones to be generated on theme switch,
 again on demand.

 > I think we need something like this in core for 3.1, everyone needs it.
 No, this is two months too late for 3.1, and big enough that it would need
 to be a blessed task to be included in a release.

 Also, I found chatter in the IRC logs from March, where Mark was
 demonstrating what he was working on:
 https://irclogs.wordpress.org/chanlog.php?channel=wordpress-
 dev&day=2010-03-11#m89606. Guess a ticket never came out of it.

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


More information about the wp-trac mailing list