• Heya!

    I just noticed that Google PageSpeed has started hating me again. I was wondering why it was and noticed it was images. Hueman theme has started serving scaled images, why?

    On my front page (https://poydalla.net/) all the featured images (thumb-medium 520 x 245 px) are scaled to 385 x 181 px for some reason. I went through my child-theme and found nothing that does this.

    Scaling happens in other places too, for example on a normal post page (for example https://poydalla.net/prototyyppailua-scythe/) the similiar content images are scaled from thumb-medium to 265 x 125.

    Why does this happen?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter diffler

    (@diffler)

    Oi oi. ??

    I noticed this too, I use CSS width:100% on my images so the images scale down to screen size but I get an F in gtmetrix under Serve Scaled Images. Did you ever figure this out?

    Here’s the problem I think @difflier

    Responsive Images in WordPress 4.4

    So what I did was put this in my functions.php file:

    //Remove WordPress Responsive Images
    function disable_srcset( $sources ) {
    return false;}
    add_filter( 'wp_calculate_image_srcset', 'disable_srcset' );

    You can try that function first and see if it fixes your problem.

    I also manually re-sized all my images to the largest size my theme uses, so the biggest images on my site are my thumbnails which are 200×200. Then I created a new thumbnail size in functions.php:

    if ( function_exists( 'add_image_size' ) ) {
    add_image_size( 'beatpost-thumb', 200, 200, false );
    }

    And called that size in my templates where thumbnails show:

    <?php hu_the_post_thumbnail('beatpost-thumb'); ?>

    • This reply was modified 7 years, 8 months ago by Sho-Down.
    Thread Starter diffler

    (@diffler)

    Thanks for your reply.

    The fact is that I don’t understand why these images are scaled down on desktop too. I would like to keep the site responsive as I get most of my traffic from mobile devices.

    The 200×200 images you are using shouldn’t be a problem on mobile either, that’s a good solution. I try to use as large images as I can, but have decided to stay with the blog max width 800px.

    Enabling these will destroy mobile view, right?

    Sorry if it feels like I don’t understand, because this is true. I kinda gave up on this, at least for a while and now I don’t seem to remember anything about image functions… Currently fighting with multilingual site mumbojumbo, so this is all forgotten!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Scaled thumb-medium images’ is closed to new replies.