Opened 13 months ago
Last modified 11 months ago
#49161 new defect (bug)
Disabling big_image_size_threshold via filters does NOT work
Reported by: |
|
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)
#3
@
11 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:
↓ 5
@
11 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' );
#5
in reply to:
↑ 4
@
11 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.
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.