WooCommerce > Settings > Catalog > Image OptionsWooCommerce > Settings > Catalog > Image Options code example
Example: wocommerce product image
add_filter( 'woocommerce_get_image_size_gallery_thumbnail', function( $size ) {
return array(
'width' => 150,
'height' => 150,
'crop' => 0,
);
} );