WordPress.org

Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #36534, comment 121


Ignore:
Timestamp:
03/12/2017 10:33:04 AM (2 years ago)
Author:
Christoph Nahr
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #36534, comment 121

    initial v1  
    11I'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.
    22
    3 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.
     31. First step: iPhone and Sony NEX-7 photos upload fine, some larger Sony A7R photos don't. Upgraded PHP from 5.6 to 7.1, and A7R photos now upload fine as well.
    44
    5 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?
     52. Second step: Certain (not all!) even larger Sony A7R II photos repeatedly fail to upload, even when reducing Lightroom export quality to achieve an image size of 5 MB or so. Perhaps total image size in pixels, combined with certain image contents, is a narrow failure condition?
    66
    7 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.
     7So I told Lightroom to reduce the ''dimensions'' of A7R II photos (7952 x 5304) to A7R size (7360 x 4909). This visually imperceptible downscaling allowed all my problem pictures to upload just fine, even if the JPEG size exceeds 10 MB.
    88
    9 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.
     9'''edit:''' In a second batch of A7R II photos, this resizing now caused ''different'' uploads to fail. Very slightly changing the size again, to 7346 x 4900 pixels, allowed all uploads to succeed.
     10
     11Reducing image size has been recommended previously but I wanted to point out that you may not need to downscale images to an unusable low resolution. Just getting slightly below some weird PHP image library threshold may solve your problem, with no visible degradation.