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

WordPress Trac noreply at wordpress.org
Thu Mar 28 11:28:30 UTC 2013


#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                  |  Resolution:
 Keywords:  dev-feedback has-patch  |
------------------------------------+-----------------------------
Changes (by husobj):

 * cc: ben@… (removed)


Comment:

 Replying to [comment:43 scribu]:
 > Here's my take on the whole thing:
 >
 > 1. Add an 'immediate' parameter to each intermediate size. `'immediate'
 => true` means the file is generated right after the attachment is
 uploaded.
 >
 > 2. For `'immediate' => false` sizes, generate it on the fly, only if
 it's not present in the array returned by wp_get_attachment_metadata().

 I think adding this to the add_image_size() function would be an elegant
 way to implement new image sizes for generation on-demand (or just after)

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


More information about the wp-trac mailing list