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

WordPress Trac noreply at wordpress.org
Mon Jan 12 19:16:03 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 drrobotnik):

 Replying to [comment:106 ericlewis]:
 > Should/can we do anything about
 [https://core.trac.wordpress.org/ticket/21961#comment:3 scribu's race
 condition]? Essentially, should we worry about the same size being
 requested for generation 100x in a second to avoid server exhaustion.

 If we take this on would moving wp_update_attachment_metadata to actually
 run before the image size is generated? It's possible via
 $editor->get_output_format or $editor->generate_filename. I assume
 image_size_{size}_generating would have the same outcome to the racers
 when the page loads. The lucky winner won't see the image?

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


More information about the wp-trac mailing list