#img {
width:300px;
height:300px;
overflow:hidden;
background-repeat: no-repeat !important;
background-position: center !important;
background-si
Actualy You are looking for size, of the container ( You can also check if the container size is bigger than the oryginal image size.$(document).ready(function(){
alert('width: ' + $('#img').width() +'; height: ' + $('#img').height() );
})