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

    I need the product thumbnails to be scaled to 200px width rather than cropped and the images to open at their original size in lightbox eg say 1000px wide

    How do I set the image size in woocommerce ? Or is it not achievable with woocommerce?

    Any help much appreciated !



    To adjust the size of the product thumbnails, open config-woocommerce > config.php then find this code

    $avia_config['imgSize']['shop_thumbnail'] 	= array('width'=>80, 'height'=>80);
    $avia_config['imgSize']['shop_catalog'] = array('width'=>450, 'height'=>355);
    $avia_config['imgSize']['shop_single'] = array('width'=>450, 'height'=>355);

    If you want your lightbox not to crop the images on load, open up js > prettyPhoto > js > jquery.prettyPhoto.js and find this code


    Set allow_resize to false.




    Thanks Ismael,

    Re $avia_config = array(‘width’=>450, ‘height’=>355);

    Does that resize every image to exactly 450 x 355 or is that the maximum size that it scales too, keeping the aspect ratio ?

    eg so it could be 439 x 232 or 445 x 345 or whatever.

    As said, I need to retain the correct aspect ratio.



    Just looking at prestashop, it seems better suited to a photo gallery site than woocommerce.

    Any advice welccome :)

    Is the Propulsion theme compatible with prestashop?


    Hi andrepreview,

    No, Propulsion is only coded to support WooCommerce. I’m not familiar with Presta but I would guess that will take a good bit of customization to get it integrated fully as most wordpress shop plugins do.

    And to answer your other quesiton, I believe that does crop images to that size if they are larger and smaller ones if one edge is larger than the specified size get cropped as well.




    Hi Devin,

    Thanks but I’ve really got to keep the same scale/aspect ratio for the thumbnails (as it’s Art :)

    Are the image sizes governed by your template or woocommerce ? Eg if I need to edit a css file, would they know more on a woocommerce forum ?


    As a workaround, could I upload 2 sizes for each image (eg 1 small, 1 large) or is the thumbnail automatically generated from the large file?

    Basically, i just want all the images, small, medium and large to retain the original scale or aspect ratio of the photo/painting.



    Going to Settings > Media Settings, inside WordPress itself, and turning off the checkbox that says ‘Crop thumbnail to exact dimensions (normally thumbnails are proportional)’.

    Remove the ‘hard crop’ option in WordPress -> WooCommerce > Settings > Catalog > Image Options (bottom of that huge page in backend)


    *Make sure to regenerate the thumbnails.

    Please let us know how it works out, but it works for me as I just tested it. (image folder contains 12 images of various sizes including nicely proportional thumbnails even).





    If you have a lot of thumbnails, here is a good plugin to auto regenerate them once the adjustments from the previous post are implemented.

    Good Luck,


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

The topic ‘Photo Gallery site’ is closed to new replies.