WooCommerce product image size code example
Example 1: auto images size of woocommerce products
@media (min-width: 768px) {
.inside-wc-product-image {
width: 100%;
}
.woocommerce ul.products li.product a img {
height: 200px; /* adjust height */
object-fit: cover;
}
}
Example 2: wocommerce product image
add_filter( 'woocommerce_get_image_size_gallery_thumbnail', function( $size ) {
return array(
'width' => 150,
'height' => 150,
'crop' => 0,
);
} );