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

WordPress Trac wp-trac at lists.automattic.com
Thu Nov 4 01:07:57 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:                 
-------------------------+--------------------------------------------------

Comment(by vteixeira):

 Hi Filosofo, I didn't know your plugin.

 This function started as a less than 10 lines script, but soon I realized
 that I needed more checks before resizing the image.
 And then I added the ability to resize any image even if it was not an
 attachment - this is really important because of the way we are using
 custom post types today with all those custom fields and metaboxes.
 And I also wanted it to be available for plugins that uploads images to
 their own folders (and tables) as well.

 What I keep asking myself is why we still don't have this in core.
 All the functionality is already built in, it just needs to be made
 available as a simple function or a class.

 The fact is every framework or cms out there have a dynamic resize
 function, we need this for wp.

 The add_image_size() function really doesn't scales.

 I'm convinced that the functions.php file (as I'm doing right now) is not
 the best place for this.

 Maybe you or other dev could refactor this for a core function. It really
 needs some more testing as I don't know if it works without problems on a
 subfolder install.

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


More information about the wp-trac mailing list