Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 3 years ago.
Improve this questionHow can I get the size, height and width of an image in when upload it with jQuery?
if you use jquery uploadify plugin then you can find the file size by any one of these following method
'onSelect': function(event, ID, fileObj) {
console.log(fileObj.size);
}
OR,
'onComplete': function(event, ID, fileObj, response, data) {
console.log(fileObj.size);
}
and use
$('img').css('width');
$('img').css('height');
$("#imgId").css('width')
$("#imgId").css('height')
精彩评论