• This new feature does not seem to be allowing clients to upload images above 2500 pixels.

    This is now happening across all WordPress sites.
    A filter claims to disable it using:

    add_filter( 'big_image_size_threshold', '__return_false' );

    Unfortunately this does not work. I also tried returning a number bigger than 2500 and it’s like my filter is ignored.

    The filter has been aded into functions.php

Viewing 6 replies - 16 through 21 (of 21 total)
  • This new feature may be a blessing for some, but the way it was implemented is very very wrong

    First, it is rolled out in an update, but this is a major change that should not be hidden. WordPress update release notes contain hundreds of small mostly code-geek notes. Finding a major feature like this is not something a casual web site admin has time for.

    Second, there is an existing media size dialog in Settings/Media. Here there are three sizes: Thumbnail, Medium, and Large sizes. These sizes have been around some years, and as a developer, I expect these to be adhered to. However, many plugins have their own image sizes, and the system has not enforced these limits.

    In my case I carefully control image sizes and compression using a plugin. All my images are well under the WP maximum – except one, which is intended as a printable 300 dpi image. This image is tied to other data that is added and is dependent on the size of the image WHEN designed. I just spent 2 hours looking for why this was broken.

    The CORRECT way to implement this would have been to ADD a new field to the Settings/Media/Image Sizes list: MAXIMUM SIZE. This should have bene set to NONE for existing installs upon upgrade. Admins could then update the value at their discretion. Add advisory text – “WP best practice … ”

    Instead of a user-friendly rollout, it’s a geek friendly rollout. And while instructions for overriding the maximum with a function are available, the policy was implemented with a break-and-fix strategy and a hidden rule.

    It would have not required much effort to put this in the admin backend with the rules that an admin has every reason to believe are the real rules.

    Oh god I just got bitten by this lovely little feature when trying to upload a super-high-res copy of a painting I did for a client, why is there no switch ANYWHERE to disable this or alter its threshold? I just found a plugin that claims to deal with this for me, I am really not in the mood to crack open all my custom themes right now and I am grumpy about this.

    Hi Everyone, this has been a really painful bug for me as well. I kept reading replies. I think the answer is that ‘__return_false’ needs to actually return false, so I wrote an inline function and it worked for me on WordPress 4.5.3, Ubuntu Linux, and NGINX. I hope this helps!

    I was able to resolve this by changing this line of code:

    
    add_filter( 'big_image_size_threshold', '__return_false' );
    

    to this:

    
    add_filter( 'big_image_size_threshold', function(){ return false; } );
    

    Best of luck!

    @huntercross

    this worked for my problem of frontend upload.
    Thanks!

    Hi, this is 2021, and I am experiencing the exact same bug on wp 5.6.4…
    Anyone found a solution yet?

    Also encountering this. @huntercross’s solution didn’t work (on Apache), unfortunately.

Viewing 6 replies - 16 through 21 (of 21 total)
  • The topic ‘big Image Threshold’ is closed to new replies.