[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:19:20 UTC 2010


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

Comment(by 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!

 Since I really didn't want to use timthumb I decided to make my own
 function using what's already available on WP.

 But then I thought I could go one step further and make it available to
 resize any image, not just attachments.
 And I also want the theme developer to have complete control over the html
 - no html generated!

 That's it.

 I think we need something like this in core for 3.1, everyone needs it.

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


More information about the wp-trac mailing list