product images uncropped same size square
-
Hi
Many of my merchants submit images of the wrong dimensions, so a portrait rectangle instead of a square.
Is it possible to scale all the images to the same size 300x300px square thumbnail without cropping the images? So the height of all thumbnails will be 300px no matter what the dimensions are, without cropping the images.
I tried this filter:
add_filter( 'woocommerce_get_image_size_gallery_thumbnail', function( $size ) { return array( 'width' => 300, 'height' => 300, 'crop' => 0, ); } );
Cleared the cache and used WooCommerce to regenerate the thumbnails.
Nothing has changed.
Thanks
KarenThe page I need help with: [log in to see the link]
Viewing 11 replies - 1 through 11 (of 11 total)
Viewing 11 replies - 1 through 11 (of 11 total)
- The topic ‘product images uncropped same size square’ is closed to new replies.