La propiedad object-fit en CSS - Ejemplo
object-fit: fill;
object-fit: contain;
object-fit: cover;
object-fit: none;
object-fit: scale-down;