[Resolved] WP is resizing images, ignores media settings

Home Forums Support [Resolved] WP is resizing images, ignores media settings

Home Forums Support WP is resizing images, ignores media settings

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #1171769
    Kris

    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.

    #1171770
    Kris

    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?

    #1171806
    David
    Staff
    Customer Support

    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/

    #1171824
    Kris

    ‘rescale’ yes I think thats what is happening. Ill try your snippet and report back, thanks!

    #1171835
    David
    Staff
    Customer Support

    You’re welcome

    #1171836
    Kris

    yep that fixed it! you’d think the latest WP would not have this issue, apparently it does, thanks!!!!

    #1171843
    David
    Staff
    Customer Support

    Well you’ll be surprise to hear that its a new feature they added lol
    Glad to be of help

Viewing 7 posts - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.