object-fit

object-fit : fill

In This condition image cover all it's parent width and height but not maintain it's own width and hight ratio.

object-fit : contain

In This condition image maintain it's own width and heigth ratio but not neccessary to cover parent element's all height and width.

object-fit : cover

This property will cover all with and heigth of parent element of image width maintain image width and height ratio.

object-fit : none

In This condition image have it's real width and height.