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

WordPress Trac noreply at wordpress.org
Fri Jan 9 22:47:32 UTC 2015


#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  |     Focuses:
------------------------------------+-----------------------------

Comment (by ericlewis):

 markoheijnen and drrobotnik's patches are great, and apply the problem at
 the underlying API level. This is more helpful than what I did in
 attachment:15311.2.diff, to generate the image for a whitelisted image URL
 request. I wonder if the latter has utility - my guess is no.

 I've collated both of the two patches, adding documentation and preferring
 internal functions where we can.

 I've also juggled the logic a bit, giving `image_get_intermediate_size()`
 a chance, then consider generating an image on the fly, then falling back
 to original.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/15311#comment:102>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list