August 2, 2012 at 8:48 pm #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 !August 3, 2012 at 1:08 am #85763
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.
IsmaelAugust 3, 2012 at 11:40 am #85764
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.August 3, 2012 at 6:14 pm #85765
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?August 3, 2012 at 6:19 pm #85766
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.
DevinAugust 3, 2012 at 9:55 pm #85767
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 ?August 3, 2012 at 10:00 pm #85768
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.August 7, 2012 at 1:02 pm #85769
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).
NickAugust 7, 2012 at 3:20 pm #85770
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.
The topic ‘Photo Gallery site’ is closed to new replies.