Fit de objeto: cubierta;

/*image cover*/
object-fit: cover; 
/*image perfect size css html*/
Shibli Raihan