[wp-trac] [WordPress Trac] #36534: Media Upload Issue Since 4.5 Upgrade

WordPress Trac noreply at wordpress.org
Thu Apr 21 18:34:47 UTC 2016


#36534: Media Upload Issue Since 4.5 Upgrade
--------------------------+------------------------
 Reporter:  unicornbacon  |       Owner:  joemcgill
     Type:  defect (bug)  |      Status:  accepted
 Priority:  normal        |   Milestone:  4.5.1
Component:  Media         |     Version:  4.5
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |     Focuses:
--------------------------+------------------------

Comment (by joemcgill):

 There are several reasons why larger images could cause these failures,
 but most likely are due to the server running out of memory during the
 multi-resize process (related: #22869).

 The increased compression in 4.5 makes these failures somewhat more
 common, it would seem. [attachment:36534.diff] fixes one possible reason
 for memory exhaustion when Imagick isn’t configured correctly, but the
 side effect is that people ​''legitimately''​ wanting to do multi-threaded
 image processing will no longer be able to (without some custom code).

 Even if we do ship [attachment:36534.diff] in a 4.5 minor release to
 provide some relief, we should reevaluate in 4.6 in the following ways:

 1. Improve the error message when these failures occur
 2. Find more ways to decrease memory usage during
 `WP_Image_Editor_Imagick::multi_resize()`
 3. Add better error handling when this does occur (which is unavoidable at
 some point) so that the whole process doesn't fail when some of the images
 are correctly available (which seems to happen in many cases).

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


More information about the wp-trac mailing list