Get image size


#1

Hi all ! Could anyone help please ! Is it possible to get file information by default ?


#2
private imgSrc : string = "path/to/my/image.png"

ionViewDidLoad() {
    var img = new Image();
    img.onload = function () {
        console.log(this.height + " / " + this.width);
    }
    img.src = this.imgSrc;
}

#3

ekoz, thanks a lot.


#4

How to use this same technique when i have multiple files in selection,