• After upgrading to 4.8, authors have been complaining that when they attempt to upload large resolution images, no thumbnail is generated. Additionally, sometimes the upload throws a generic “HTTP error” error message.

    The images are 3024 x 4032 pixels and hover around 5-8MB. The maximum upload size is set to 64MB.

    If I reduce the image resolution down to 2400 x 3200, the upload works fine and thumbnails are generated. But, anything above that size seems to be problematic.

    I can’t expect authors to go through the extra step of manipulating the image, since they are uploading batches of photos from their phones and/or aren’t tech savvy enough to understand what resolution is or how to reduce it. It was enough of a challenge just to get them this far.

    So, what I can do to help try to fix this issue?

Viewing 10 replies - 1 through 10 (of 10 total)
  • You could be running up against the PHP memory limit of your server, and it’s unable to process large images.

    Here are three ways to increase PHP’s memory allocation:

    1. If you can edit or override the system php.ini file, increase the memory limit. For example, memory_limit = 128M

    2. If you cannot edit or override the system php.ini file, add php_value memory_limit 128M to your .htaccess file.

    3. If neither of these work, it’s time to ask your hosting provider to temporarily increase PHP’s memory allocation on your account.

    (in the above examples, the limit is set to 128MB)

    • This reply was modified 7 years, 8 months ago by Jacob Peattie.
    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    You might try increasing the amount of memory allowed for WordPress. Also check system logs to see if something external (gd or imagemagick) is having problems with images that large.

    Thread Starter computerslayer1

    (@computerslayer1)

    This is what is currently set:

    max_execution_time = 30 ; Maximum execution time of each script, in seconds
    max_input_time = 60 ; Maximum amount of time each script may spend parsing request data
    max_input_vars = 1000
    memory_limit = 96M ; Maximum amount of memory a script may consume (32MB)

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    So for fun, try upping the memory to 256 and see if it makes a difference. If not, look at the server’s system logs and check for free disk space, especially in the tmp partition.

    Thread Starter computerslayer1

    (@computerslayer1)

    I did not see anything in the server logs or server error logs pertaining to gd or imagemagick.

    Thread Starter computerslayer1

    (@computerslayer1)

    Well, I increased the memory limit to 128MB, but now I’m back to seeing the mysterious “HTTP error”

    View post on imgur.com

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    I hate that error…. did you check the free space on your various disk partitions?

    df -h

    anything low?

    Thread Starter computerslayer1

    (@computerslayer1)

    It’s a managed server. I don’t have shell access.

    However, I don’t seem to have a problem uploading large files through cpanel. A 45MB file uploaded without any problems.

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    It’s not an upload issue, it’s the processing that takes place after the image is uploaded. Please contact your host and ask them to check logs.

    Thread Starter computerslayer1

    (@computerslayer1)

    Well, the host increased the memory limit to 128MB and that seemed to resolve the issue.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘No thumbnails for large resolution images’ is closed to new replies.