[wp-trac] [WordPress Trac] #59147: Big image incorrectly triggers for small image

WordPress Trac noreply at wordpress.org
Sat Aug 19 02:12:16 UTC 2023


#59147: Big image incorrectly triggers for small image
--------------------------+-----------------------------
 Reporter:  p00ya         |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Media         |    Version:
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 WordPress 6.3, PHP 7.4 (GCS runtime), 1536MB RAM, no
 `big_image_size_threshold` filter.

 Upload a small PNG image (from `wp-admin/media-new.php`), for example the
 attached PNG that has dimensions 100x150.  The PNG was created by taking a
 screenshot in macOS and then running `pngcrush` on it (but I can reproduce
 without the pngcrush step too).

 Encounter error:

   The server cannot process the image. This can happen if the server is
 busy or does not have enough resources to complete the task. Uploading a
 smaller image may help. Suggested maximum size is 2560 pixels.

 My understanding based on https://make.wordpress.org/core/2019/10/09
 /introducing-handling-of-big-images-in-wordpress-5-3/ is that the error
 should only occur if the height or the width is > 2560.

 My instance is operating in a RAM-restricted environment (tested on GCS F4
 with 1536MB), but this has been sufficient for the kinds of imagemagick
 processing WordPress invoked on earlier versions.  I'm not sure when it
 stopped working, but could bisect, but it's somewhere between v5.8.3 and
 v6.2 based on my media library and upgrade history.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/59147>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list