Smush CDN automatic image resizing is not working as expected.

I have Smush CDN and automatic resize on but still having issues with Serve scaled images. GTmetrix and PageSpeed Insights all showing in their report. Please check and help.

  • Adam
    • Support Gorilla

    Hi Keiran

    I hope you’re well today and thank you for reaching out to us.

    I checked the site and I think this is not quite an issue with Smush itself but it’s rather related to how the theme handles images.

    If you look at these reported images (I check some of them, reported by PageSpeed Insights for “desktop mode”:wink: in homepage source code, you’ll notice that they are actually served from CDN and for each image there is a set of images in various sizes. If you inspect the selected image on the page, you should notice that the image displayed on the page seems to be fitting its container as expected.

    The theme is using srcset which means that there are multiple sized images “suggested” to browser at the same time and the browser decides which one to choose. Smuch in such case resizes images to the sizes “expected” (defined) by the “srcset” attribute parameters and if, for example, srcset “says” given image should be 350px Smush will resize it keeping aspect ratio, without any cropping etc. If the container width and height is, for some reason, slightly different than this, it might still cause that to be reported.

    However, it would be good to do a test on this to make sure. I realize this is a live site so do you have any staging site where you could possibly switch the theme temporarily to some other to check if then the same images are reported as needing resizing or not?

    Best regards,

    Adam