So I have an image that when I do
console.log(image);
This is what appears on the console,
Object {imageFormat: "image/jpeg", imageB64: "..gibberish..."}
What I want to be able to extract the dimensions of the image, size of the image so that I can do conditionals and send it to a server.
I did something like this.
console.log(image.naturalHeight + " x " + image.naturalWidth);
but all I get is
undefined x undefined
Take note that I also need the size please.
Just started to pick up Javascript so some terms may be unknown to me, please be kind with your comments.
tl;dr, how to obtain image properties?