• Resolved shalke04

    (@shalke04)


    Hi,
    I’m working on images resizing. In particular I have to serve the correct image size for some single-product page. The version of the image has already been created and is present on the site I just have to select and assign it.
    In “settings/products” I don’t have section “display/product-image”, how can select the correct size for single-product page?

    For a moment I installed an “old” plugin called “display all image size”…It seems to work but its last update was two years ago… any solution or tips?
    I hope I was clear enough
    Thanks

Viewing 4 replies - 1 through 4 (of 4 total)
  • A few versions ago, one used to have to find out the size at which the theme displayed the product image, and set that size in Settings > Product tab > Image sizes, then run the “Regenerate Thumbnails” plugin. All that’s in the past, WooCommerce now works out what sizes it needs and generates thumbnails automatically. If you change theme or the settings at Appearance > Customise > WooCommerce > Product Images, the image thumbnails are recalculated in the background, again automatically. Accordingly, no way is provided for an admin to set thumbnail sizes.

    Thread Starter shalke04

    (@shalke04)

    Ok thanks… I’ll give you an example for my problem: the size of image on single-product page must to be (according inspector and woo settings) 600×427. Gt metrix/page speed and others detect that is served an image of 1200×910 about… but, the 600×427 image has been correctly generated and is present. I suppose I need to fix it…

    Moderator Hari Shanker R

    (@harishanker)

    Hi @shalke04

    As @lorro suggested the best you should be able to find these options in Appearance > Customize > WooCommerce > Product Images.

    In case that doesn’t help, please use the code snippet listed in the following article to set the correct image size:

    add_theme_support( 'woocommerce', array(
    'thumbnail_image_width' => 150,
    'single_image_width' => 322,
    ) );

    Once that’s done, make sure you try to regenerate thumbnails by visiting WooCommerce > Status > Tools > Regenerate Product Thumbnails, as I’ve tried to showcase in the following screenshot: https://cld.wthms.co/HSmwRt

    I hope that helps!

    Hi @shalke04,

    We haven’t heard back from you in a while, so I’m going to go ahead and mark this thread as resolved. If you have any other questions please start a new thread.

    Cheers!

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