Make WordPress Core

Opened 6 years ago

Closed 10 months ago

Last modified 9 months ago

#48919 closed defect (bug) (worksforme)

Images wont upload with new Big Images fiunctionality

Reported by: shamai's profile shamai Owned by:
Milestone: Priority: normal
Severity: normal Version: 5.3
Component: Media Keywords: dev-feedback
Focuses: Cc:

Description

With version 5.3 came a new ability to create a big optimized image if the client uploads a very large image. This sort of replaces the full image, although it seems to retain the original image on the server. (not sure why but thats another issue...?)

Seen here:
https://make.wordpress.org/core/2019/10/09/introducing-handling-of-big-images-in-wordpress-5-3/

Unfortunately there seems to be some bugs. Clients can no longer upload files. They get an error:

"Post-processing of the image failed. If this is a photo or a large image, please scale it down to 2500 pixels and upload it again."

The images uploaded are over 2500, but under 2MB.
I tried setting this new functionality to false using the hook I keep finding online:

add_filter( 'big_image_size_threshold', '__return_false' );

This did not work. I tried returning a new size over 2500 and it still wont work. Is this a bug or am I and everyone on the internet using this hook wrong?

Thank you.

Change History (6)

#2 @lumpysimon
6 years ago

A client has just reported this issue to me on a site where they had no problems uploading before upgrading to 5.3. Weirdly the error message says 2500px, when I believe the threshold is 2560px.

#3 @fattony4
6 years ago

I have this problem, too, on my private server (Debian 10, nginx, PHP 7.4, newest WordPress 5.4). If you tell me how to collect the relevant logs, I can provide them!

I found the problem in the nginx error logs (/var/log/nginx/error.log):

2020/04/23 17:40:55 [error] 15290#15290: *77 client intended to send too large body: 65686808 bytes, ...

The solution was to add this line to my nginx config file:

client_max_body_size 20M;

How silly of me to assume it was someone else's fault. XD

Last edited 6 years ago by fattony4 (previous) (diff)

#4 @markparnell
6 years ago

  • Component changed from General to Media

#5 @callumbw95
10 months ago

  • Resolution set to worksforme
  • Status changed from new to closed

Hi All,
I have tested this issue on the latest release, and I could not replicate the aforementioned bug. As of such I believe that in the last 5 years this issue has been resolved elsewhere within the code. Also reading through the other comments, it looks like this may have been somewhat serverside and related to nginx/apache config.
Because this issue does look to be resolved I will mark this ticket as closed, but feel free to reopen if you feel otherwise.
😃

Bug Report

Description

Uploading large images over 2560px fails.

Environment

  • WordPress: 6.9-alpha-60093-src
  • PHP: 8.4.7
  • Server: nginx/1.27.5
  • Database: mysqli (Server: 8.0.40 / Client: mysqlnd 8.4.7)
  • Browser: Chrome 137.0.0.0
  • OS: macOS
  • Theme: Twenty Seventeen 3.9
  • MU Plugins: None activated
  • Plugins:
    • Test Reports 1.2.0

Steps to Reproduce

  1. Upload an image larger than 2560px.
  2. This is where the 🐞 Bug occurred originally and the image would fail to upload. However this is no longer the case and it is uploading correctly now.

Expected Results

Image should be uploaded and the max width / height of the image should be scaled down to 2560px

Actual Results

Image is uploaded correctly and the max width / height of the image is being scaled down to 2560px in the latest release / trunk.

#6 @peterwilsoncc
9 months ago

  • Milestone Awaiting Review deleted
Note: See TracTickets for help on using tickets.