Home Forums Basel support forum Serve Scaled Images (use smaller images as thumbnails)

Serve Scaled Images (use smaller images as thumbnails)

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #5953

    J2O
    Participant

    Hi Guys,

    I wondered if you could help me with this issue. It seems the theme is scaling images via html/css instead of just serving the correctly sized thumbnail image.

    This slows down the website and gives it a “F” grade on the “Serve Scaled Images” recommendation.

    Another post about this is at: https://theme-fusion.com/forums/topic/serving-scaled-images-in-woocommerce/ it’s the same issue.

    When I ran a test on gtmetrix, I get an “F” on serving scaled images. I use Avada’s default 600X538 product image size, but the CSS shrinks it to 250X215 giving me the poor page load.

    Example:

    wp-content/uploads/2014/01/test.png is resized in HTML or CSS from 500×638 to 215×275. Serving a scaled image could save 199.0KiB (81% reduction).

    Naturally I WANT the product image to be full size on the product listing page but smaller on the home/shop page when using the recent or other product shortcodes.

    Basel is an eCommerce theme so is very JPG heavy, I really think we should be serving the correct sized images – on the site I’m working on we could save nearly 500KB this way which would drastically speed up the website.

    It seems that IF the correct thumbnail sizes are actually there, the theme’s functions could be modified to include some code to force WooCommerce to use the thumbnail sizes instead of scaling down the larger sized images.

    Let me know what you think.
    Jay

    #5955

    J2O
    Participant
    #5960

    Artem Temos
    Keymaster

    Hello,

    Thank you for this interesting question.

    Lets clarify the situation.

    1. Any responsive wordpress theme (or any web-site) will scale images with CSS to make them look correctly on any resolution. And our Basel theme is not an exception.

    2. Actually you have a full control over images sizes on your web-site and there are no sizes hardcoded in theme files.

    3. So you can simple decrease images dimensions in Woocommerce / Settings / Products / Display. And it depends on your shop page layout what width and height should be there. For example if you have 4 columns shop page layout without sidebar try to set 280×500 without hardcrop and regenerate all thumbnails. Then check with gtmetrix and see the result.

    4. If you want to have different images size on your home page so you can specify it for “Products” element with Visual Composer separately.

    Kind regards

    #5962

    J2O
    Participant

    Hi Xtemos,

    Thanks for your reply, I’ll try your suggestion at point ‘3’ and let you know.

    Jay

    #5965

    J2O
    Participant

    Hi Guys,

    My settings were already defined correctly..

    Any other ideas?

    Jay

    #5977

    Artem Temos
    Keymaster

    Hello,

    Correctly but they are too large. As we wrote you, try to set “Catalog images” to be 280×500

    Currently, you have 600×800 and that is what GTmetrix is warning you about.

    Regards

    #6039

    J2O
    Participant

    Hi Xtemos,

    Sorry, I’ll do that now. Can I ask, why 280 x 500? why not 280 x 280?

    The homepage tends to have the biggest size thumbnail display and we use 4 columns on the shop page and wont be changing it so 280 x 280 should be the best size?

    Jay

    #6041

    J2O
    Participant

    Hi Guys,

    I changed it to 280 x 280 and luckily it’s worked straight away as that size was already generated so no need to re-generate thumbnails.

    GTmetrix is’t complaining about scaling product images now..!

    Thanks
    Jay

    #6048

    Artem Temos
    Keymaster

    Hello,

    We just looked at Gtmetrix and see that there is no “Scale images” issue now

    Regards

Viewing 9 posts - 1 through 9 (of 9 total)