Site logo

[Resolved] WP automatically resizing images

Home Forums Support [Resolved] WP automatically resizing images

Home Forums Support WP automatically resizing images

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #2448210
    Philippe

    Hi,

    WordPress has started resizing my largest images just today (from 1200 x 630 to 924 x 630). Not all of them are impacted when looking at each picture in the Media Library but a few, and only the new one I uploaded today does effectively appear as 924 x 630 on the website. I uploaded it several times under different names; WP automatically resized it each. This has never happened before.

    So far, I put this in php: add_filter( ‘big_image_size_threshold’, ‘__return_false’ ); and it did nothing. I put all sizes to 9999 in Media settings. Still no luck.

    Thanks for helping me stop WP from doing its own thing without my consent.

    Philippe

    #2448304
    Leo
    Staff
    Customer Support

    Hi Philippe,

    That sounds strange that it would happen all of the sudden.

    Are you sure it’s not a conflict from another plugin?

    Have you checked with WP’s support team to see if they can comment?

    #2448820
    Philippe

    Thanks, Leo.

    I turned off all plugins and the same thing is occurring. It is definitely a WP issue and I would be curious to know if other people are going to report the same one to you in the coming days. In the meantime, I contacted WP’s support team.

    Best,

    Philippe

    #2448997
    David
    Staff
    Customer Support

    Hi there,

    can you share a link to where we can see the problem image ?

    #2449162
    Philippe

    Hi David,

    Here it is: https://onehomeplanet.com/pathways-to-a-post-capitalist-world/

    You will see the difference if you click on another post or go to the homepage. I worked this morning with the WP support on this issue; it appears that if I use another theme than Generatepress (Twenty Twenty Three), the problem disappears. So, they recommended going back to you. They also mentioned the wp-config.php file; what should I look for there?

    Previously, I turned off all plugins and followed these steps to solve the issue:
    1/ Uploaded the image several times under different names;
    2/ Put this in functions.php: add_filter( ‘big_image_size_threshold’, ‘__return_false’ );
    3/ Set all sizes to 9999 in Media settings.

    Nothing worked, so far, except getting out of Generatepress.

    #2449578
    Fernando
    Customer Support

    Hi Philippe,

    For clarity, can you take a screenshot of an image that’s been wrongfully resized from your end?

    Uploading Screenshots: https://docs.generatepress.com/article/using-the-premium-support-forum/#uploading-screenshots

    #2449894
    Philippe

    Hi Fernando,

    1/ The link you gave me is obsolete;
    2/ Why not go to the website itself to see what I am talking about?

    #2450079
    David
    Staff
    Customer Support

    In Customizer > Layout > Blog –> Featured images, theres a separate Tab for Archive, Posts and Pages.
    What attachment sizes and or width / height measurements ( if any ) do you have set for Posts and Archives ?

    #2450177
    Philippe

    None. And this seems to be for the better because if I give a width/height measurement here for featured images, the system will try to force it on the homepage both in the post display on top, which occupy the full available space width, and in the subsequent posts that occupy the space of one of the two columns below. In clear, giving 1200 x 630 (the original size of my featured images) results in having these other posts images on the homepage displaying 300 (or so) x 630. Individual posts will display 1000 (size of the container) x 630.

    If there are no measurements set for featured images, they appear in the correct relative proportions for each and every post, including on the homepage, except the darn last one. This makes me think to recreate it entirely, just to check.

    If there is no solution at that stage, it is no big deal. I will be back later on this.

    #2450204
    Philippe

    I recreated the post and the featured image is still resized by the system from 1200 x 630 to 924 x 630.

    The issue seems therefore to be in a post setting that I am missing, as all posts from now on will likely resize their featured image.

    #2450269
    Philippe

    It seems I found the answer. Shortpixel plugin was causing the issue.

    Could have thought of that earlier. ):

    #2450454
    David
    Staff
    Customer Support

    Glad to hear you found the issue!

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