Horizontal images do not resize correctly
-
Hello,
I have a custom function to resize the WooCommerce single image:
add_filter(‘woocommerce_get_image_size_single’, function($size){
$size[‘height’] = 527;
$size[‘width’] = 686;
return $size;
});Vertical images do get resize correctly with a white background. However, horizontal images do not resize correctly, they just get cropped, without the white background. Are there any knows issues with the function above, or could this possibly be a plugin conflict?
Thank you for your response.
Regards,
Marian
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Horizontal images do not resize correctly’ is closed to new replies.