How to fit second thumbnail on products page (woocommerce)


I’ve got a problem with the grid on woocommerce. I’ve got a crossfade between the first and the second images, they’re both uncropped but the first is a rectangle and the second a square so my crossfade looks like this:

Is there any chance to have only the second image cropped?
enter image description here