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

WordPress Trac noreply at wordpress.org
Sat Mar 11 20:11:10 UTC 2017


#36534: Media Upload Issue Since 4.5 Upgrade
---------------------------------------+-----------------------------
 Reporter:  unicornbacon               |       Owner:  joemcgill
     Type:  defect (bug)               |      Status:  reopened
 Priority:  normal                     |   Milestone:  Future Release
Component:  Media                      |     Version:
 Severity:  critical                   |  Resolution:
 Keywords:  needs-testing needs-patch  |     Focuses:
---------------------------------------+-----------------------------

Comment (by Christoph Nahr):

 I've been having the same problem, with a twist. My cheap shared host
 doesn't even offer Imagick so I'm using the standard PHP GD library to
 resize images. Yet some images caused the same problem of stalling after
 upload, unable to generate the requisite smaller sizes. I cannot change
 any PHP performance settings (because of cheap shared host) but I did find
 a sort of solution.

 1. First step: iPhone and Sony NEX-7 photos upload fine, larger Sony A7R
 photos don't. Upgraded PHP from 5.6 to 7.1, and A7R photos now upload fine
 as well.

 2. Second step: Larger Sony A7R II photos cause reported upload failure,
 even when reducing Lightroom export quality to achieve an image size of 5
 MB or so. Stumped. Idea: what if total image size in pixels is a narrow
 failure condition?

 So I told Lightroom to reduce exported photo *dimensions* of A7R II photos
 (7952 x 5304) to A7R size (7360 x 4909). Wouldn't you know, this visually
 imperceptible downscaling allowed all my problem pictures to upload just
 fine, even if the JPEG size exceeds 10 MB.

 Reducing image size has been recommended previously but what I want to
 point out is that you perhaps don't have to downscale images to some
 ridiculously low resolution. Just getting slightly below some weird PHP
 image library threshold may solve your problem, with no visible
 degradation.

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


More information about the wp-trac mailing list