Archived topic
WP is resizing images, ignores media settings
6 replies · Started by Kris on February 20, 2020
Here is the page, image should be 800 x 8055. No matter what I adjust in GP or WP it always gets resized to 254 wide.
If I edit the html and 'force' it to 800 wide it is massively distorted. Hence I believe the image is being resized not just displayed.
http://tipsforhealthyeating.com/insert-image/
I have no plugins installed. WP is ignoring any settings I put in settings-media. Including setting all values to 0.
I just realized this might have something to do with my site layout and my total container width. Could the issue be somewhere in these settings?
Hi there,
looks like WP's big image controls is the issue, by default WP limits the image dimensions to a maximum of 2560px - if the image is bigger than that it rescales it.
You can disable it by adding this PHP Snippet:
add_filter( 'big_image_size_threshold', '__return_false' );
https://docs.generatepress.com/article/adding-php/
Then re-upload the image with a new file name.
More info here:
https://make.wordpress.org/core/2019/10/09/introducing-handling-of-big-images-in-wordpress-5-3/
'rescale' yes I think thats what is happening. Ill try your snippet and report back, thanks!
You're welcome
yep that fixed it! you'd think the latest WP would not have this issue, apparently it does, thanks!!!!
Well you'll be surprise to hear that its a new feature they added lol
Glad to be of help