WordPress.org

Make WordPress Core

Opened 10 months ago

Last modified 8 months ago

#49161 new defect (bug)

Disabling big_image_size_threshold via filters does NOT work

Reported by: bbtodd Owned by:
Milestone: Awaiting Review Priority: normal
Severity: major Version:
Component: Media Keywords:
Focuses: Cc:

Description

Trying to disable the new image sizes in WordPress but this has no effect! I'm still seeing the new large sizes being saved on my server even after using this code.

add_filter( 'big_image_size_threshold', '__return_false' );

This is a very serious issue for me. My site accepts user uploads but I've been overwriting the full size images with the thumbnail not just to save space on server but also so that I don't have large images stored on my server in case of possible copyright abuse.

This should have been a feature you need to turn on, not something that automatically happened after a site is auto upgraded. I absolutely need this disabled but the ability to disable this is NOT working.

Change History (5)

#1 @SergeyBiryukov
10 months ago

  • Component changed from General to Media

#2 @bbtodd
10 months ago

I don't see a place where suggestions can be put forth but I very much dislike this 'big_image_size_threshold' function and how it was put out. But if adding these very large image sizes is something that is decided really is necessary, the ability to turn these sizes on and off and or edit the exact dimensions should be an option available in settings > media - just like the other default image sizes.

#3 @bbtodd
8 months ago

March 2020 - WP is still creating large size images on server 😠
I have to manually scan via FTP on a regular basis to find and delete any offending images.

#4 follow-up: @sjnbham
8 months ago

We use Smush for our image optimization. It provides a method to reduce the image size already. The documented method to disable this feature isn't working for us either.

add_filter( 'big_image_size_threshold', '__return_false' );
Last edited 8 months ago by peterwilsoncc (previous) (diff)

#5 in reply to: ↑ 4 @bbtodd
8 months ago

Replying to sjnbham:

We use Smush for our image optimization. It provides a method to reduce the image size already. The documented method to disable this feature isn't working for us either.

Thank you, I was starting to consider writing my own code to detect/delete oversized images, so I'll check this out.

Note: See TracTickets for help on using tickets.