[wp-trac] [WordPress Trac] #43525: Add a method to generate the image subsizes with multiple requests

WordPress Trac noreply at wordpress.org
Sun Mar 11 17:32:03 UTC 2018


#43525: Add a method to generate the image subsizes with multiple requests
-------------------------+------------------
 Reporter:  azaozz       |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  5.0
Component:  Media        |     Version:
 Severity:  normal       |  Resolution:
 Keywords:               |     Focuses:
-------------------------+------------------

Comment (by azaozz):

 There are (at least) two ways we can fix this:
 - Generate only one subsize on image upload, add meta for it and return
 "success". Then do another request (from PHP) and generate another.
 Continue until all subsizes are created.
 - On uploading first create the attachment post, then update the
 attachment meta after each image subsize is created. If the upload fails
 to create all subsizes, send another (AJAX) request from the browser to
 continue creating subsizes (we will need some UI for that).

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


More information about the wp-trac mailing list