[wp-trac] [WordPress Trac] #40439: Save progress of intermediate image creation after upload

WordPress Trac noreply at wordpress.org
Thu Jan 25 20:10:59 UTC 2018


#40439: Save progress of intermediate image creation after upload
--------------------------+-----------------------------
 Reporter:  mikeschroder  |       Owner:
     Type:  enhancement   |      Status:  new
 Priority:  normal        |   Milestone:  Future Release
Component:  Media         |     Version:
 Severity:  normal        |  Resolution:
 Keywords:  needs-patch   |     Focuses:
--------------------------+-----------------------------

Comment (by blobfolio):

 An alternative to a queue- or batch-type approach would be to alter
 `image_get_intermediate_size()` (and probably a few related functions) so
 that it consults the global `$_wp_additional_image_sizes` to see if a size
 exists (independently of the stored image meta), and run a basic
 `file_exists()`-type check to see if the file does indeed exist on the
 system, and if not, build it then and there.

 The above would help WP recover from upload timeouts, and as an added
 bonus, help old media transition to new themes.

 The main downside is that `file_exists()` lookup times can add up,
 particularly on Windows hosts. Another factor to consider is that this
 would potentially push thumbnail generation overhead to the frontend,
 which could lead to slow first loads (if i.e. a lot of thumbnails were
 missing).

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


More information about the wp-trac mailing list