css image fit in div with aspect ratio

background-image: url("images/DSELOGO trasparente.png");
background-size:contain;
background-repeat:no-repeat;img {
    width: 100%;
    height: 100%; 
    object-fit: contain;
}