const heightInput = document.querySelector('#height');
const widthInput = document.querySelector('#width');
const image = new Image()
image.src = URL.createObjectURL(file)
image.onload = function () {
widthInput.value = this.width
heightInput.value = this.height
}
Top comments (0)