<img class="img" src="" width="100" height="100">
<input class="a" type="file">
$('.a').change(function(e) {
var _URL = window.URL || window.webkitURL;
var file=this.files[0], img;
img= new Image();
img.onload = function() {
$('.img').attr('src', this.src);
console.log(this.width)
};
img.src = _URL.createObjectURL(file);
})