I am building an image resize/crop, and I\'d like to show a live preview after they\'ve edited it in a modal (bootstrap). This should work, I believe, but I just ge
fileChangeEventHeader(fileInput) {
const oFReader = new FileReader();
oFReader.readAsDataURL(fileInput.target.files[0]);
oFReader.onload = (event: any) => {
var image = new Image();
image.src = event.target.result;
image.onload = function () {
console.log(`width : ${image.width} px`, `height: ${image.height} px`);
};
};
}