Image resizing issues – Slowing of site

This topic has 3 replies, 3 voices, and was last updated 6 years, 8 months ago ago by Olga Barlow

  • Avatar: kounterfit
    philgreensworkshop
    Participant
    February 21, 2018 at 15:02

    Hey,

    I think this may help others with speed issues, but could you advise us on best image setting both native in theme and also woocommerce in order to reduce the amount of resizes that wordpress site is holding.

    For example…
    My store has around 1100 products
    Due to wordpress/woocommerce image requirements, my site holds 6 resizes for each image.

    With all the products and site images; once resized, that give me an image library of over 20,000 images.

    — Is there a way to standardise image sizes across both wordpress and woocommerce so that we only need say 3 resizes images?

    From reading a lot of the support tickets, I think this is a common issue
    (I also add it’s not an issue caused by 8theme! I am just hoping to lean on there expertise and coding of the theme its self)

    Thanks
    Phil

    2 Answers
    Avatar: identidade
    Santhatela
    Participant
    February 21, 2018 at 17:40

    Hi kounterfit

    Sorry for the intrusion. I solved it the following way.

    I added the following to functions.php

    /* Custom filter to remove image sizes thumbnails from WordPress */
    function paulund_remove_default_image_sizes( $sizes) {
    unset( $sizes[‘medium_large’]);
    unset( $sizes[‘medium’]);
    unset( $sizes[‘large’]);
    unset( $sizes[‘shop_catalog_alt’]);
    return $sizes;
    }
    add_filter(‘intermediate_image_sizes_advanced’, ‘paulund_remove_default_image_sizes’);

    So I have more control over which thumbnails I want to use

    Sorry again, I hope I have helped

    Rudimar

    Avatar: Olga Barlow
    Olga Barlow
    Support staff
    February 22, 2018 at 11:54

    Hello,


    @kounterfit
    you can try the solution of @identidade.
    Unfortunately, we did not dig deeper because we are theme authors and work with default WP and WC image functions. Changing the standard functions is individual customization and we don’t have the deal with that.

    So, if you want to find the better solution you need to send the request to WP or WC support forum.


    @identidade
    thank you for your suggestion.

    Regards

  • Viewing 3 results - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.Log in/Sign up

8theme customization service
We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.