How to resize product image to a perfect rectangle without white spaces at right and left.
At present we are using 1200*1200 size image, and resizing to 450*300
in result we are getting 450*300 image but white space exits
please help us to fix this issue in magento2
We are using this code presently
<?php $_imagehelper->init($_product, $image)->resize(450, 300); ?>
Thanks in advance