[wp-trac] [WordPress Trac] #10532: Changes to hook image_make_intermediate_size

WordPress Trac wp-trac at lists.automattic.com
Sat Aug 1 11:07:30 UTC 2009


#10532: Changes to hook image_make_intermediate_size
---------------------------+------------------------------------------------
 Reporter:  stephanreiter  |       Owner:     
     Type:  enhancement    |      Status:  new
 Priority:  normal         |   Milestone:  2.9
Component:  Media          |     Version:     
 Severity:  minor          |    Keywords:     
---------------------------+------------------------------------------------
 Currently we have the filter 'image_make_intermediate_size' in WordPress
 that allows plug-ins to rename/move the intermediate image file after it
 was created. In order to modify the image, e.g. to add watermarks, plug-
 ins first have to explicitly load the image although it was in memory just
 moments ago.

 Changing the filter image_make_intermediate_size to receive the image
 handle in addition to the filename would allow plug-in creators to write
 more efficient code by reusing the image resource before it is destroyed.
 This can be accomplished by relocating the filter invocation into the
 image_resize function.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/10532>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list