Cómo hacer que la imagen se ajuste al contenedor CSS

.fill {object-fit: fill;}
.contain {object-fit: contain;}
.cover {object-fit: cover;}
.scale-down {object-fit: scale-down;}
.none {object-fit: none;}
SECRET MYSTERY