The object-fit property controls how an image fits inside its container. The object-position property controls the position of the image inside the container.
Fills the box and may crop the image.
Shows the complete image inside the box.
Stretches the image to fill the box.
Positions the image toward the top.