Site logo

[Resolved] Thumbnail Size For Single Product Page (Main Image)

Home Forums Support [Resolved] Thumbnail Size For Single Product Page (Main Image)

Home Forums Support Thumbnail Size For Single Product Page (Main Image)

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1725835
    Eric

    Hi!

    I’m trying to optimize my image sizes for my woocommerce store, and I am struggling to figure out which thumbnail size out of many presets is being used by generatepress/wordpress for the main single product image on my product pages.

    I am using this wordpress plugin to manage my image thumbnails: https://wordpress.org/plugins/image-sizes/

    Here is an image showing of which thumbnail classes I have selected under the plugin: https://drive.google.com/file/d/1vnmF2KjUZGtJJ5M0og0bH_L3tV1vMEWK/view?usp=sharing

    Right now I am running a test to see if the image in question is of the class shop_single, but it takes a while to regenerate images for my entire store. I previously thought it would be woocommerce_single.

    The other two selected thumbnails, woocommerce_thumbnail and woocommerce_gallery_thumbnail belong to the category page images and single page thumbnails respectively.

    Thanks for the help,
    Eric

    #1726083
    David
    Staff
    Customer Support

    Hi there,

    According to the woo docs – woocommerce_single is the product page image:

    https://docs.woocommerce.com/document/image-sizes-theme-developers/

    And looking at their code:

    https://github.com/woocommerce/woocommerce/blob/23710744c01ded649d6a94a4eaea8745e543159f/includes/class-wc-regenerate-images-request.php#L148-L158

    It looks like shop_* are legacy sizes.

    Pretty certain you want woocommerce_single – but to be super safe it may be worth checking with Woocommerce support – GP doesn’t interfere with those image choices.

    #1726573
    Eric

    It seems that in addition to using woocommerce_single, the default wordpress “large” thumbnail size is also being used in displaying the single product images/gallery.

    I could be wrong about that, but I am now regenerating the woocommerce_single images because you seem to be correct that this is in use.

    Is there any performance impact of having excess thumbnail sizes that aren’t being used by generatepress? Or is it just wasted space on my server’s hard drive? Just want to know the risk if I’m generating extra images while I’m figuring this out.

    #1727380
    David
    Staff
    Customer Support

    The Zoomed Image in the Single Product lightbox should use the Original Full ( or largest available ) size WP attachment for its purposes.

    Doesn’t really affect performance having more image sizes but it will start to eat up a lot of unnecessary space.

    Maybe best to move the site to a Staging server before regenerating thumbnails.

    And something i should mention is that the Niche Site from the GP Site Library – that stacked Gallery on desktop is a PHP Function that is in a Hook Element titled Gallery Stack – which does things slightly differently – just in case you’re using that Site.

    #1727538
    Eric

    Noted on the single product zoomed in images.

    After regenerating woocommerce_single with the new dimensions I am getting much higher scores on google page speed insights. (trying to get ready for the google ranking update in may which will incorporate core vital metrics)

    However, sometimes I am still getting high LCP. I am going to try testing a different hosting provider, as I’ve read server response times are a common cause of this. I’m going with cloudways managed hosting after some research, as they have full integration with cloudflare which I’m also having some compatibility issues with caching. They also offer digitalocean servers which have good reviews in terms of performance.

    I’m going to mark this one as resolved, because I think I have all the information I need on the topic. Thanks for the information and tips for the next time I decide to alter my image dimensions.

    #1727779
    David
    Staff
    Customer Support

    Glad to hear that – and happy to be of help!

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