Get Width & Height of Image using Javascript before Uploading it (When you onchange on INPUT element)

You can get the width and height of the image in Javascript easily. Simply you need to use onchange event of Javascript on input[type=file]. Steps:- Create a blob URL of the uploaded file. Then create a HTML5 new Image() object, set BLOB url to its src. Apply onload event on new Image() object. So, you … Read more Get Width & Height of Image using Javascript before Uploading it (When you onchange on INPUT element)